sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT country FROM table_name_1 WHERE of_1 = "locotenent"
CREATE TABLE INST, Here is a database schema( table schema);
What country has OF-1 Locotenent?It is not neccessary to use all the tables.
SELECT concacaf FROM table_245694_4 WHERE season = 2010
CREATE TABLE INST, Here is a database schema( table schema);
Name the concacaf for 2010 seasonIt is not neccessary to use all the tables.
SELECT 2007 FROM table WHERE 2009 = 2r AND 2008 = 1r
CREATE TABLE INST, Here is a database schema( table schema);
What was the 2007 result for a 2008 result of 1R and 2009 result of 2R?.It is not neccessary to use all the tables.
SELECT "Season" FROM table_63223 WHERE "Location" = 'safeco field' AND "Decision" = 'l' AND "Opponent" = 'boston red sox'
CREATE TABLE INST, Here is a database schema( table schema);
What season was played at Safeco Field, against the Boston Red Sox, with a decision of L?It is not neccessary to use all the tables.
SELECT date FROM table_22481967_1 WHERE number = "1"
CREATE TABLE INST, Here is a database schema( table schema);
List the date for number 1.It is not neccessary to use all the tables.
SELECT australian_open FROM table_name_71 WHERE year = 2010
CREATE TABLE INST, Here is a database schema( table schema);
What is the Australian open in 2010?It is not neccessary to use all the tables.
SELECT Assists per game FROM table WHERE Rebounds per game = 4.2
CREATE TABLE INST, Here is a database schema( table schema);
How many assists per game have 4.2 rebounds per game?.It is not neccessary to use all the tables.
SELECT target_city__market FROM table_134987_3 WHERE city_of_license = "Rapid City" AND format = "Alternative"
CREATE TABLE INST, Here is a database schema( table schema);
What are the market city/market(s) for Rapid City Alternative format?It is not neccessary to use all the tables.
SELECT 102 AS kg FROM table_name_56 WHERE ri_song_hui___prk__ = "226kg"
CREATE TABLE INST, Here is a database schema( table schema);
What's the 102kg when the Ri Song-Hui was 226kg?It is not neccessary to use all the tables.
SELECT Component FROM table WHERE Integrated = one
CREATE TABLE INST, Here is a database schema( table schema);
What component has an integrated of one?.It is not neccessary to use all the tables.
SELECT district FROM table_name_52 WHERE incumbent = "benjamin eggleston"
CREATE TABLE INST, Here is a database schema( table schema);
What district has benjamin eggleston for incumbent?It is not neccessary to use all the tables.
SELECT 2006 FROM table_name_34 WHERE 2007 = "q2"
CREATE TABLE INST, Here is a database schema( table schema);
What 2006 has q2 as the 2007?It is not neccessary to use all the tables.
SELECT COUNT(player) FROM table_1965650_11 WHERE pick__number = 166
CREATE TABLE INST, Here is a database schema( table schema);
How many players have the pick number 166?It is not neccessary to use all the tables.
SELECT SUM Win % FROM table WHERE Average (Total) Home Attendance = 3,927 (19,633)
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of all win% with average home/total attendance of 3,927 (19,633)?.It is not neccessary to use all the tables.
SELECT episode FROM table_name_97 WHERE viewers = 6.71
CREATE TABLE INST, Here is a database schema( table schema);
What episode had 6.71 viewers?It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_name_10 WHERE time = "3:15"
CREATE TABLE INST, Here is a database schema( table schema);
What was the least attendance when the time was 3:15?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.itemid = "51180"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose gender is m and item id is 51180?It is not neccessary to use all the tables.
SELECT AVG Area km 2 FROM table WHERE Status = village AND Official Name = paquetville AND Population > 706
CREATE TABLE INST, Here is a database schema( table schema);
What is the area (in km2) for the village of Paquetville, with a population over 706?.It is not neccessary to use all the tables.
SELECT MIN Round FROM table WHERE College = washington state AND Pick < 48
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Round, when College is "Washington State", and when Pick is less than 48?.It is not neccessary to use all the tables.
SELECT mens_singles FROM table_14903999_1 WHERE mens_doubles = "Sveinn Logi Sölvason Tryggvi Nilsen" AND womens_singles = "Elsa Nielsen"
CREATE TABLE INST, Here is a database schema( table schema);
Who won mens singles the year sveinn logi sölvason tryggvi nilsen won mens doubles and elsa nielsen won womens singlesIt is not neccessary to use all the tables.
SELECT MIN FA Cup FROM table WHERE Total > 46
CREATE TABLE INST, Here is a database schema( table schema);
Who has the lowest FA cup and has a total over 46?.It is not neccessary to use all the tables.
SELECT 2010 FROM table_name_30 WHERE 2006 = "a" AND 2011 = "a"
CREATE TABLE INST, Here is a database schema( table schema);
What 2010 has an A 2006 & 2011?It is not neccessary to use all the tables.
SELECT Decision FROM table WHERE Home = vancouver AND Date = april 21
CREATE TABLE INST, Here is a database schema( table schema);
What was the decision from the Vancouver home game on April 21?.It is not neccessary to use all the tables.
SELECT icao FROM table_name_90 WHERE country = "india" AND iata = "trz"
CREATE TABLE INST, Here is a database schema( table schema);
What is the ICAO in India with IATA TRZ?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "HEMOPYTSIS" AND prescriptions.drug_type = "BASE"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose primary disease is hemopytsis and drug type is base?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Production code = 176265
CREATE TABLE INST, Here is a database schema( table schema);
What date was the episode with production code 176265 aired?.It is not neccessary to use all the tables.
SELECT team FROM table_name_48 WHERE stadium = "stadion maksimir"
CREATE TABLE INST, Here is a database schema( table schema);
What is the team at Stadion Maksimir?It is not neccessary to use all the tables.
SELECT winner FROM table_name_97 WHERE race_leader = "rest day"
CREATE TABLE INST, Here is a database schema( table schema);
Name the winner for rest day race leaderIt is not neccessary to use all the tables.
SELECT scores FROM table_23292220_13 WHERE seans_team = "Louie Spence and Joe Wilkinson"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the episode that had Louie Spence and Joe Wilkinson on Sean's team?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Date = 07/06/1997
CREATE TABLE INST, Here is a database schema( table schema);
Which player played on 07/06/1997?.It is not neccessary to use all the tables.
SELECT Money list rank FROM table WHERE Top 10s = 0
CREATE TABLE INST, Here is a database schema( table schema);
What was the money list rank for Reid in the year that she had 0 top 10s?.It is not neccessary to use all the tables.
SELECT MIN(goals) FROM table_name_17 WHERE seasons = "1996 – 2001" AND order > 939
CREATE TABLE INST, Here is a database schema( table schema);
What is the low goal for orders more than 939 during Seasons of 1996 – 2001?It is not neccessary to use all the tables.
SELECT 2007 FROM table_name_48 WHERE 2006 = "4r" AND 2004 = "1r" AND 2009 = "4r"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2007 value with a 4r in 2006 a 1r in 2004 and a 4r in 2009?It is not neccessary to use all the tables.
SELECT COUNT Shot Pct. FROM table WHERE Blank Ends = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of all Shot PCT occurrences when the value of Blank Ends is 8?.It is not neccessary to use all the tables.
SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available = 7
CREATE TABLE INST, Here is a database schema( table schema);
Return the unique name for stations that have ever had 7 bikes available.It is not neccessary to use all the tables.
SELECT "Population" FROM table_13555 WHERE "Median family income" = '$38,044'
CREATE TABLE INST, Here is a database schema( table schema);
What Population has a Median family income of $38,044?It is not neccessary to use all the tables.
SELECT position FROM table_name_85 WHERE caps = 13
CREATE TABLE INST, Here is a database schema( table schema);
What position does the player with 13 caps play?It is not neccessary to use all the tables.
SELECT domari FROM table_name_40 WHERE hindi = "pāñc"
CREATE TABLE INST, Here is a database schema( table schema);
What Domari word has the same meaning as the Hindi word p c?It is not neccessary to use all the tables.
SELECT Current Venue FROM table WHERE Location = Mason, Ohio
CREATE TABLE INST, Here is a database schema( table schema);
Which current venues location is Mason, Ohio?.It is not neccessary to use all the tables.
SELECT Recent BMI FROM table WHERE Start BMI < 46.3 AND season = season 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the recent BMI on season 8 for the person who's BMI started under 46.3?.It is not neccessary to use all the tables.
SELECT "Report" FROM table_9336 WHERE "Away team" = 'sydney spirit' AND "Score" = '96-87'
CREATE TABLE INST, Here is a database schema( table schema);
What was the report for an away team of Sydney Spirit and score of 96-87?It is not neccessary to use all the tables.
SELECT General Election FROM table WHERE votes swing = 1.69
CREATE TABLE INST, Here is a database schema( table schema);
Which general election had a vote swing of 1.69?.It is not neccessary to use all the tables.
SELECT home FROM table_name_6 WHERE date = "april 6"
CREATE TABLE INST, Here is a database schema( table schema);
Was it a home game on the date of April 6?It is not neccessary to use all the tables.
SELECT COUNT(wins) FROM table_name_55 WHERE tournament = "pga championship" AND events > 10
CREATE TABLE INST, Here is a database schema( table schema);
How many wins were in the PGA Championship when there were more than 10 events?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Pick = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the Player with a Pick that is 6?.It is not neccessary to use all the tables.
SELECT COUNT(avg) FROM table_name_45 WHERE rec < 26 AND player = "reggie brown" AND long < 40
CREATE TABLE INST, Here is a database schema( table schema);
How many averages have recs smaller than 26 and a Player of reggie brown and a Long smaller than 40?It is not neccessary to use all the tables.
SELECT MAX(uni_number) FROM table_name_32 WHERE first = "todd"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest uni# of the person with the first name Todd?It is not neccessary to use all the tables.
SELECT Residence FROM table WHERE Representative = quincy murphy
CREATE TABLE INST, Here is a database schema( table schema);
What residence has representative Quincy Murphy?.It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Date = may 9
CREATE TABLE INST, Here is a database schema( table schema);
Who is the visitor on May 9?.It is not neccessary to use all the tables.
SELECT SUM(total) FROM table_name_3 WHERE fa_cup < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of totals for FA Cup values of 0?It is not neccessary to use all the tables.
SELECT AVG Top-5 FROM table WHERE Cuts made > 34
CREATE TABLE INST, Here is a database schema( table schema);
what is the average top-5 when the cuts made is more than 34?.It is not neccessary to use all the tables.
SELECT b_52_model FROM table_18933037_3 WHERE unit = "441st BS, 7th BW"
CREATE TABLE INST, Here is a database schema( table schema);
When 441st bs 7th bw is the unit what is the b-52 model?It is not neccessary to use all the tables.
SELECT batting_style FROM table_name_57 WHERE player = "heath streak"
CREATE TABLE INST, Here is a database schema( table schema);
Name the batting style for heath streakIt is not neccessary to use all the tables.
SELECT to_par FROM table_name_51 WHERE player = "billy casper"
CREATE TABLE INST, Here is a database schema( table schema);
What was Billy Casper's to par?It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Title = "To Live and Diet in L.A."
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote "to live and diet in L.A."?.It is not neccessary to use all the tables.
SELECT team_classification FROM table_25055040_22 WHERE general_classification = "Brett Lancaster"
CREATE TABLE INST, Here is a database schema( table schema);
When Brett Lancaster won the general classification who won the team calssification?It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE U.S. viewers (millions) = 8.44
CREATE TABLE INST, Here is a database schema( table schema);
Who is the director when there is 8.44 million viewers?.It is not neccessary to use all the tables.
SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = "Orange")
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of the campus which has more faculties in 2002 than every campus in Orange county.It is not neccessary to use all the tables.
SELECT Tickets Sold / Available FROM table WHERE Gross Revenue (2011) = $333,100
CREATE TABLE INST, Here is a database schema( table schema);
How many tickets were sold / available for the venue that had a gross revenue of $333,100 in 2011?.It is not neccessary to use all the tables.
SELECT COUNT(incumbent) FROM table_1341690_21 WHERE candidates = "Paul Tsongas (D) 60.6% Paul W. Cronin (R) 39.4%"
CREATE TABLE INST, Here is a database schema( table schema);
How many times was the candidates paul tsongas (d) 60.6% paul w. cronin (r) 39.4%?It is not neccessary to use all the tables.
SELECT class FROM table_name_15 WHERE part_3 = "blétu"
CREATE TABLE INST, Here is a database schema( table schema);
What is Class when Part 2 is "blétu"?It is not neccessary to use all the tables.
SELECT ratt FROM table_name_72 WHERE year = "1988"
CREATE TABLE INST, Here is a database schema( table schema);
What is the RAtt in the year 1988?It is not neccessary to use all the tables.
SELECT "Venue" FROM table_58048 WHERE "Crowd" > '18,817' AND "Away team score" = '11.14 (80)'
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game with a crowd of 18,817 and an away team score of 11.14 (80) held?It is not neccessary to use all the tables.
SELECT name FROM table_name_63 WHERE winning_drivers = "tazio nuvolari"
CREATE TABLE INST, Here is a database schema( table schema);
What race was won by Tazio Nuvolari?It is not neccessary to use all the tables.
SELECT AVG Silver FROM table WHERE Nation = belarus AND Total < 1
CREATE TABLE INST, Here is a database schema( table schema);
What average silver has belarus as the nation, with a total less than 1?.It is not neccessary to use all the tables.
SELECT Songwriter(s) FROM table WHERE Track number = 12
CREATE TABLE INST, Here is a database schema( table schema);
Name the songwriter for track number 12.It is not neccessary to use all the tables.
SELECT service_charge FROM table_name_42 WHERE designation = "12-pdr light"
CREATE TABLE INST, Here is a database schema( table schema);
What is the service chage of the boat howitzers with a 12-pdr light destination?It is not neccessary to use all the tables.
SELECT vote__percentage FROM table_name_92 WHERE seats = 9
CREATE TABLE INST, Here is a database schema( table schema);
Name the vote % for seats of 9It is not neccessary to use all the tables.
SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" AND t3.sex = "M"
CREATE TABLE INST, Here is a database schema( table schema);
Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name.It is not neccessary to use all the tables.
SELECT date FROM table_name_26 WHERE venue = "punt road oval"
CREATE TABLE INST, Here is a database schema( table schema);
What day does the team play at punt road oval?It is not neccessary to use all the tables.
SELECT MIN(dma) FROM table_19131921_1
CREATE TABLE INST, Here is a database schema( table schema);
What is dma?It is not neccessary to use all the tables.
SELECT Completed? FROM table WHERE Last Issue = july 2010
CREATE TABLE INST, Here is a database schema( table schema);
Was the Title with a Last Issue of July 2010 completed?.It is not neccessary to use all the tables.
SELECT Genre FROM table WHERE Station = Hot FM
CREATE TABLE INST, Here is a database schema( table schema);
What is the genre for the hot fm station?.It is not neccessary to use all the tables.
SELECT Base Fares FROM table WHERE Fare Categories = senior/disabled
CREATE TABLE INST, Here is a database schema( table schema);
What is the Base Fare in the senior/disabled category?.It is not neccessary to use all the tables.
SELECT agg FROM table_name_70 WHERE team_1 = "milan"
CREATE TABLE INST, Here is a database schema( table schema);
What is the agg when team 1 is Milan?It is not neccessary to use all the tables.
SELECT MIN E Score FROM table WHERE T Score = 8 AND Total < 22.95
CREATE TABLE INST, Here is a database schema( table schema);
What E score has the T score of 8 and a number smaller than 22.95?.It is not neccessary to use all the tables.
SELECT MAX Grid FROM table WHERE Rider = randy de puniet AND Laps < 24
CREATE TABLE INST, Here is a database schema( table schema);
Which Grid has a Rider of randy de puniet, and Laps smaller than 24?.It is not neccessary to use all the tables.
SELECT position FROM table_name_65 WHERE drawn < "2" AND difference = "2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Position when the Drawn is less than 2 with a Difference of 2?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Car Sponsor(s) = HydroxyCut
CREATE TABLE INST, Here is a database schema( table schema);
What team is sponsored by hydroxycut?.It is not neccessary to use all the tables.
SELECT MAX Cable rank FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest cable ranking?.It is not neccessary to use all the tables.
SELECT director FROM table_name_72 WHERE notes = "prizzi's honor"
CREATE TABLE INST, Here is a database schema( table schema);
Who had notes of Prizzi's Honor?It is not neccessary to use all the tables.
SELECT class FROM table_name_60 WHERE identifier = "cjbc-1-fm"
CREATE TABLE INST, Here is a database schema( table schema);
what is the class when the identifier is cjbc-1-fm?It is not neccessary to use all the tables.
SELECT MAX("Bronze") FROM table_14272 WHERE "Nation" = 'czech republic' AND "Total" < '4'
CREATE TABLE INST, Here is a database schema( table schema);
Which the highest Bronze of czech republic with a Total smaller than 4?It is not neccessary to use all the tables.
SELECT date_founded__founder FROM table_242785_1 WHERE notes = "prima Italica:raised for aborted Caucasus war"
CREATE TABLE INST, Here is a database schema( table schema);
when notes are prima italica:raised for aborted caucasus war when was that founded?It is not neccessary to use all the tables.
SELECT "Away team" FROM table_79295 WHERE "Home team" = 'solon'
CREATE TABLE INST, Here is a database schema( table schema);
What is the away team when solon was the home team?It is not neccessary to use all the tables.
SELECT MIN(losses) FROM table_18703133_1 WHERE points = 23
CREATE TABLE INST, Here is a database schema( table schema);
Name the least amount of losses for 23 pointsIt is not neccessary to use all the tables.
SELECT release_price___usd__ FROM table_18823880_10 WHERE socket = "socketG1"
CREATE TABLE INST, Here is a database schema( table schema);
When socketg1 is the socket what is the release price in dollars?It is not neccessary to use all the tables.
SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of perpetrators?It is not neccessary to use all the tables.
SELECT COUNT Broadcast date FROM table WHERE Run time = 24:43
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes had a broadcast date and run time of 24:43?.It is not neccessary to use all the tables.
SELECT MIN Valves FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the greatest number of valves?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Attendance = N/A
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent when the attendance is n/a?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_61 WHERE away_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
What did the home team score against Fitzroy?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Week = 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the Result on Week 3?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Roll > 419
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Name that has the Roll larger than 419?.It is not neccessary to use all the tables.
SELECT Group FROM table WHERE Result = nominated AND Year < 2012 AND Film/Show = east west 101 AND Award = best lead actor in a television drama
CREATE TABLE INST, Here is a database schema( table schema);
Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama?.It is not neccessary to use all the tables.
SELECT monarch FROM table_name_6 WHERE assumed_office = "december 15, 1876"
CREATE TABLE INST, Here is a database schema( table schema);
Which monarch assumed office on December 15 1876?It is not neccessary to use all the tables.
SELECT nickname FROM table_name_93 WHERE club = "east geelong"
CREATE TABLE INST, Here is a database schema( table schema);
What was the nickname of the team in the East Geelong club?It is not neccessary to use all the tables.
SELECT winning_score FROM table_2167226_3 WHERE margin_of_victory = "5 strokes"
CREATE TABLE INST, Here is a database schema( table schema);
What is the winning score when 5 strokes is the margin of victory?It is not neccessary to use all the tables.
SELECT agg FROM table_name_95 WHERE team_1 = "goldfields obuasi"
CREATE TABLE INST, Here is a database schema( table schema);
Goldfields Obuasi Team 1 has what Agg. totals ?It is not neccessary to use all the tables.
SELECT College FROM table WHERE Pick > 130 AND Team = new york jets
CREATE TABLE INST, Here is a database schema( table schema);
Which college did the player picked larger than 130 by the New York Jets go to?.It is not neccessary to use all the tables.