sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT reserved_for___sc___st__none_ FROM table_name_34 WHERE constituency_number = "192"
CREATE TABLE INST, Here is a database schema( table schema);
What is the reserved for the constituency of 192?It is not neccessary to use all the tables.
SELECT MIN First game FROM table WHERE Played < 2
CREATE TABLE INST, Here is a database schema( table schema);
What are the earliest year with games played fewer than 2?.It is not neccessary to use all the tables.
SELECT time FROM table_name_15 WHERE speed = "87.49mph"
CREATE TABLE INST, Here is a database schema( table schema);
What is Time when Speed is 87.49mph?It is not neccessary to use all the tables.
SELECT Area FROM table WHERE English Name = Xin County
CREATE TABLE INST, Here is a database schema( table schema);
What is the area of xin county?.It is not neccessary to use all the tables.
SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0 INNER JOIN course_prerequisite ON COURSE_0.course_id = course_prerequisite.course_id INNER JOIN course AS COURSE_1 ON COURSE_1.course_id = course_prerequisite.pre_course_id WHERE COURSE_0.department = 'BIOMEDE' AND COURSE_0.number = 523
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me what the course prerequisites are for BIOMEDE 523 ?It is not neccessary to use all the tables.
SELECT competition FROM table_name_52 WHERE year < 1983
CREATE TABLE INST, Here is a database schema( table schema);
What Competition has a Year smaller than 1983?It is not neccessary to use all the tables.
SELECT team FROM table_name_69 WHERE winner = "craig lowndes" AND circuit = "phillip island grand prix circuit"
CREATE TABLE INST, Here is a database schema( table schema);
Which Team has a Winner of craig lowndes and a Circuit of phillip island grand prix circuit?It is not neccessary to use all the tables.
SELECT Republican: Dino Rossi FROM table WHERE Lead Margin > 7 AND Democrat: Christine Gregoire = 53.7%
CREATE TABLE INST, Here is a database schema( table schema);
What was the percentage for Republican: Dino Rossi when Democrat: Christine Gregoire polled at 53.7% and the lead margin was larger than 7?.It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Record = 14-10
CREATE TABLE INST, Here is a database schema( table schema);
Who is the visitor with a 14-10 record?.It is not neccessary to use all the tables.
SELECT "Rank" FROM table_13185 WHERE "Area (km 2 )" > '3,433' AND "District" = 'lahad datu'
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank with an area larger than 3,433 for the district of Lahad Datu?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Tournament = danny thomas memphis classic
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the Tournament named danny thomas memphis classic?.It is not neccessary to use all the tables.
SELECT "Opponents" FROM table_34561 WHERE "Year" = '1999–2000' AND "Team" = 'leeds united'
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponents have a Year of 1999 2000, and a Team of leeds united?It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Density < 376.37 AND Province = valverde AND Area > 823
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Week = wild card
CREATE TABLE INST, Here is a database schema( table schema);
What was the result on the wild card?.It is not neccessary to use all the tables.
SELECT wheel_arrangement FROM table_name_3 WHERE year_made = "1900"
CREATE TABLE INST, Here is a database schema( table schema);
Which wheel arrangement made in year 1900?It is not neccessary to use all the tables.
SELECT 2 AS nd_leg FROM table_name_16 WHERE team_2 = "morocco"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2nd leg result when team 2 is Morocco?It is not neccessary to use all the tables.
SELECT "Language(s)" FROM table_864 WHERE "Film title" = 'Tsotsi'
CREATE TABLE INST, Here is a database schema( table schema);
What are all the languages for tsotsi?It is not neccessary to use all the tables.
SELECT COUNT(fumble_force) FROM table_name_20 WHERE solo < 2 AND player = "jim laney"
CREATE TABLE INST, Here is a database schema( table schema);
How many forced fumbles for jim laney with under 2 solo tackles?It is not neccessary to use all the tables.
SELECT # of total votes FROM table WHERE # of seats won = 30
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of total votes for # of seats won being 30.It is not neccessary to use all the tables.
SELECT date FROM table_name_18 WHERE result = "sa by 10 wkts"
CREATE TABLE INST, Here is a database schema( table schema);
When was the match with a result of sa by 10 wkts?It is not neccessary to use all the tables.
SELECT date FROM table_name_27 WHERE home_team = "hartlepool united"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game for the HartlePool United team?It is not neccessary to use all the tables.
SELECT date FROM table_name_28 WHERE competition = "f" AND opponents = "fc astoria walldorf"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date when Competition is "F" and when Opponents is "FC Astoria Walldorf"?It is not neccessary to use all the tables.
SELECT GDP 2012 millions of euro FROM table WHERE Population in millions < 1.3 AND GDP (Nominal) per capita 2012 euro = 20,700(p)
CREATE TABLE INST, Here is a database schema( table schema);
What is GDP 2012 Millions of Euro, when Population in Millions is less than 1.3, and when GDP (Nominal) Per Capita 2012 Euro is 20,700(p)?.It is not neccessary to use all the tables.
SELECT Frequency MHz FROM table WHERE ERP W > 30 AND City of license = tremonton, utah
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency MHz in tremonton, utah with a ERP W larger than 30?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Country = united states AND Place = t9 AND Player = fred couples
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when Fred Couples played in the United States and placed t9?.It is not neccessary to use all the tables.
SELECT Manner of departure FROM table WHERE Outgoing manager = Nicolae Manea
CREATE TABLE INST, Here is a database schema( table schema);
What was the manner of departure of Nicolae Manea?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_93 WHERE year < 2009 AND result = "1st"
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue of the competition with a result of 1st before 2009?It is not neccessary to use all the tables.
SELECT developer FROM table_name_96 WHERE year_of_release = "cancelled"
CREATE TABLE INST, Here is a database schema( table schema);
Which developer has a year of cancelled releases?It is not neccessary to use all the tables.
SELECT round FROM table_name_33 WHERE opponents = "ajax"
CREATE TABLE INST, Here is a database schema( table schema);
What is the round with ajax opponentsIt is not neccessary to use all the tables.
SELECT is_3_m1945 FROM table_name_72 WHERE kv_1s_m1942 = "45"
CREATE TABLE INST, Here is a database schema( table schema);
What's the IS-3 when the KV-1S is 45?It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE School/Club Team = Clemson
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of th player who's school is Clemson?.It is not neccessary to use all the tables.
SELECT U.S. airdate FROM table WHERE Title = "Jenny from the Block"
CREATE TABLE INST, Here is a database schema( table schema);
What was the USA airdate for "Jenny From the Block"?.It is not neccessary to use all the tables.
SELECT year_built FROM table_name_41 WHERE model = "ctc-3"
CREATE TABLE INST, Here is a database schema( table schema);
In what year was the ctc-3 model built?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE High rebounds = tim duncan (14)
CREATE TABLE INST, Here is a database schema( table schema);
What score has tim duncan (14) as the high rebounds?.It is not neccessary to use all the tables.
SELECT hdtv FROM table_name_21 WHERE television_service = "mtv rocks"
CREATE TABLE INST, Here is a database schema( table schema);
What is HDTV when Television Service is MTV Rocks?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Tie no = 11
CREATE TABLE INST, Here is a database schema( table schema);
What date has 11 as the tie no.?.It is not neccessary to use all the tables.
SELECT "k_{\\mathrm{H,cc}} = \\frac{c_{\\mathrm{aq}}}{c_{\\mathrm{gas}}}" FROM table_26347 WHERE "k_{\\mathrm{H,cp}} = \\frac{c_\\mathrm{aq}}{p}" = '7.8 × 10−4'
CREATE TABLE INST, Here is a database schema( table schema);
What was the '{\mathrm{h,cc}} = \frac{c_{\mathrm{aq}}}{c_{\mathrm{gas}}}' if '_{\mathrm{h,cp}} = \frac{c_\mathrm{aq}}{p}' is 7.8 10 4?It is not neccessary to use all the tables.
SELECT "car" FROM table_203_525 WHERE "stock boost" > 7
CREATE TABLE INST, Here is a database schema( table schema);
which car has a stock boost of over 7psi ?It is not neccessary to use all the tables.
SELECT COUNT(isolation) FROM table_19716903_1 WHERE mountain_peak = "Jack Mountain"
CREATE TABLE INST, Here is a database schema( table schema);
How many different isolation numbers does the Jack Mountain peak have?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Winning score = 69-66-68=203
CREATE TABLE INST, Here is a database schema( table schema);
How many to par has the winning score of 69-66-68=203..It is not neccessary to use all the tables.
SELECT Air date (France) FROM table WHERE French title = "La pêche au trésor"
CREATE TABLE INST, Here is a database schema( table schema);
Name the air date france for "la pêche au trésor".It is not neccessary to use all the tables.
SELECT institution FROM table_24216139_2 WHERE nickname = "Purple Aces"
CREATE TABLE INST, Here is a database schema( table schema);
Name the institution for purple acesIt is not neccessary to use all the tables.
SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier ORDER BY COUNT(Carrier)
CREATE TABLE INST, Here is a database schema( table schema);
Bar chart x axis carrier y axis the number of carrier, and rank by the Y in ascending.It is not neccessary to use all the tables.
SELECT COUNT(average) FROM table_name_77 WHERE stadium = "balmoor" AND lowest > 400
CREATE TABLE INST, Here is a database schema( table schema);
At Balmoor Stadium what's the total average having a greater than 400 lowest?It is not neccessary to use all the tables.
SELECT Athlete FROM table WHERE 2.20 = o AND 2.25 = xxx AND Nationality = brazil
CREATE TABLE INST, Here is a database schema( table schema);
Which athlete from Brazil has 2.20 O and 2.25 of XXX?.It is not neccessary to use all the tables.
SELECT eu FROM table_13770460_3 WHERE country = "ESp"
CREATE TABLE INST, Here is a database schema( table schema);
What is the EU status of ESP?It is not neccessary to use all the tables.
SELECT COUNT(bronze) FROM table_name_6 WHERE nation = "jamaica (jam)" AND total < 7
CREATE TABLE INST, Here is a database schema( table schema);
How many bronzes have a Nation of jamaica (jam) and a Total smaller than 7?It is not neccessary to use all the tables.
SELECT MIN Others# FROM table WHERE Others% = 1.9% AND Bush# < 160,390
CREATE TABLE INST, Here is a database schema( table schema);
How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush?.It is not neccessary to use all the tables.
SELECT BB Pop FROM table WHERE CB CW = 1 AND Year > 1976 AND RIAA = p
CREATE TABLE INST, Here is a database schema( table schema);
What is the BB pop of the song with a CB CW of 1, RIAA of P and was released more recently than 1976?.It is not neccessary to use all the tables.
SELECT COUNT Region FROM table WHERE 2013/14 = 27
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of regions for 2013/14 being 27.It is not neccessary to use all the tables.
SELECT outcome_description, COUNT(outcome_description) FROM Research_Outcomes AS T1 JOIN Project_Outcomes AS T2 ON T1.outcome_code = T2.outcome_code GROUP BY outcome_description
CREATE TABLE INST, Here is a database schema( table schema);
A pie chart for listing the number of the description of the outcomes for all projects.It is not neccessary to use all the tables.
SELECT june_10_11 FROM table_25286976_2 WHERE march_27_29 = "129"
CREATE TABLE INST, Here is a database schema( table schema);
When 129 is on March 27th to 29th what is June 10th to 11th?It is not neccessary to use all the tables.
SELECT School FROM table WHERE Position = linebacker AND Pick < 245 AND Round = 6
CREATE TABLE INST, Here is a database schema( table schema);
From what school was the linebacker that had a pick less than 245 and was drafted in round 6?.It is not neccessary to use all the tables.
SELECT COUNT Leading scorer FROM table WHERE Date = February 21
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of leading scorer of february 21?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_73 WHERE time = "7:52.65"
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest rank when the time is 7:52.65?It is not neccessary to use all the tables.
SELECT Opponents in the final FROM table WHERE Partner = simon aspelin
CREATE TABLE INST, Here is a database schema( table schema);
In the final, who are the opponents of partner Simon Aspelin?.It is not neccessary to use all the tables.
SELECT MAX Top 5 FROM table WHERE Avg. Start = 28.5
CREATE TABLE INST, Here is a database schema( table schema);
What was the best top five result when the average start is 28.5? .It is not neccessary to use all the tables.
SELECT Completed FROM table WHERE Address = 410 22nd St E
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum completed for address on 410 22nd st e.It is not neccessary to use all the tables.
SELECT record FROM table_name_57 WHERE method = "tko (strikes)" AND opponent = "daan kooiman"
CREATE TABLE INST, Here is a database schema( table schema);
Which record has tko (strikes) as the method and daan kooiman as the opponent?It is not neccessary to use all the tables.
SELECT "Bask" FROM table_9589 WHERE "Indoor track" = 'yes' AND "School" = 'valparaiso'
CREATE TABLE INST, Here is a database schema( table schema);
What is the basketball status for Valparaiso who has an indoor track status of yes?It is not neccessary to use all the tables.
SELECT COUNT(position) FROM table_name_28 WHERE team = "são paulo railway" AND against < 46
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of Position when the team was s o paulo railway and the against is less than 46?It is not neccessary to use all the tables.
SELECT MIN Attempts FROM table WHERE Name = Bobby Layne
CREATE TABLE INST, Here is a database schema( table schema);
How many attempts for Bobby Layne?.It is not neccessary to use all the tables.
SELECT Genes FROM table WHERE Species = burkholderia pseudomallei AND Base Pairs = 4,126,292
CREATE TABLE INST, Here is a database schema( table schema);
How many genes are in species burkholderia pseudomallei with 4,126,292 base pairs?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Ground = ghantoot racing and polo club
CREATE TABLE INST, Here is a database schema( table schema);
What is the time of the Ghantoot Racing and Polo Club?.It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Date = October 6
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high assists on october 6?.It is not neccessary to use all the tables.
SELECT total FROM table_name_68 WHERE set_3 = "25-15"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Total when the Set 3 was 25-15?It is not neccessary to use all the tables.
SELECT Birth FROM table WHERE Became Duchess = 18 august 1593 husband's accession
CREATE TABLE INST, Here is a database schema( table schema);
What is the Birth of the lady that has a Became Duchess on 18 august 1593 husband's accession?.It is not neccessary to use all the tables.
SELECT AVG(gold) FROM table_name_41 WHERE silver = 1 AND event = "2000 summer paralympics" AND bronze > 3
CREATE TABLE INST, Here is a database schema( table schema);
what is the gold when silver is 1 event is 2000 summer paralympics and bronze is more than 3?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Rank # = 5 AND Opponent# = stanford
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the game played where the opponent was Stanford, ranked #5?.It is not neccessary to use all the tables.
SELECT U.S. viewers (millions) FROM table WHERE Title = "Here Comes the Neighborhood"
CREATE TABLE INST, Here is a database schema( table schema);
How many millions of U.S. viewers watched the episode "Here Comes the Neighborhood"?.It is not neccessary to use all the tables.
SELECT Company FROM table WHERE Parent company = Wrightbus
CREATE TABLE INST, Here is a database schema( table schema);
what is the company with the parent company wrightbus?.It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Round = 2 AND College = kansas state AND Pick = 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of the player from Round 2, Pick 19 from College of Kansas State?.It is not neccessary to use all the tables.
SELECT jockey FROM table_25429986_1 WHERE position = "10th"
CREATE TABLE INST, Here is a database schema( table schema);
who isthe jockey in 10th position?It is not neccessary to use all the tables.
SELECT status FROM table_2589963_1 WHERE institution = "Informatics International College"
CREATE TABLE INST, Here is a database schema( table schema);
What status of school is informatics international college?It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Home team = oxford united
CREATE TABLE INST, Here is a database schema( table schema);
What was the Attendance when Oxford United was the Home team?.It is not neccessary to use all the tables.
SELECT Segment A FROM table WHERE Episode = 237
CREATE TABLE INST, Here is a database schema( table schema);
What is the segment A on episode 237?.It is not neccessary to use all the tables.
SELECT COUNT(average) FROM table_name_27 WHERE tally = "3–11" AND matches > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the average when the tally is 3–11 with more than 4 matches??It is not neccessary to use all the tables.
SELECT to_par FROM table_name_34 WHERE country = "england" AND score < 71
CREATE TABLE INST, Here is a database schema( table schema);
What's the to par for england when the score is less than 71?It is not neccessary to use all the tables.
SELECT game_1 FROM table_name_88 WHERE position = "fullback"
CREATE TABLE INST, Here is a database schema( table schema);
Which Game 1 has a fullback?It is not neccessary to use all the tables.
SELECT nationality FROM table_1965650_6 WHERE player = "Neil Korzack"
CREATE TABLE INST, Here is a database schema( table schema);
What nationality for neil korzack?It is not neccessary to use all the tables.
SELECT COUNT(top_5) FROM table_name_38 WHERE year < 2009 AND wins > 0
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the total number of Top 5 that has the Year smaller than 2009 and the Wins larger than 0?It is not neccessary to use all the tables.
SELECT points FROM table_14342592_3 WHERE player = "Clark"
CREATE TABLE INST, Here is a database schema( table schema);
How many points does Clark have?It is not neccessary to use all the tables.
SELECT MAX(nicotine) FROM table_name_40 WHERE name = "raison blue"
CREATE TABLE INST, Here is a database schema( table schema);
Which Raison Blue has the highest nicotine?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Opponent = Philadelphia Flyers
CREATE TABLE INST, Here is a database schema( table schema);
If the opponent was the Philadelphia flyers, what was the record?.It is not neccessary to use all the tables.
SELECT Status FROM table WHERE Unemployment Rate = 6.7%
CREATE TABLE INST, Here is a database schema( table schema);
Name the status for unemployment rate being 6.7%.It is not neccessary to use all the tables.
SELECT home FROM table_name_92 WHERE visitor = "chicago black hawks" AND date = "april 20"
CREATE TABLE INST, Here is a database schema( table schema);
What team did the Chicago Black Hawks visit on April 20?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Week = 2
CREATE TABLE INST, Here is a database schema( table schema);
When it is week 2 what is the record?.It is not neccessary to use all the tables.
SELECT Gold FROM table WHERE Bronze = chinese taipei
CREATE TABLE INST, Here is a database schema( table schema);
What country won gold in the year(s) that Chinese Taipei won bronze?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = lake oval
CREATE TABLE INST, Here is a database schema( table schema);
When was the game played at Lake Oval?.It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_41 WHERE entrant = "peter whitehead" AND chassis = "alta f2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of all the points won by Peter Whitehead in an alta f2 Chassis?It is not neccessary to use all the tables.
SELECT MIN(lane) FROM table_name_69 WHERE name = "lorenzo vismara" AND time > 49.67
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest lane with Lorenzo Vismara and a time higher than 49.67?It is not neccessary to use all the tables.
SELECT Driver(s) FROM table WHERE Team = Phil Parsons Racing
CREATE TABLE INST, Here is a database schema( table schema);
Who drove for Phil Parsons Racing team?.It is not neccessary to use all the tables.
SELECT SUM Grid FROM table WHERE Driver = david coulthard
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid total for david coulthard?.It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Result = 3-2
CREATE TABLE INST, Here is a database schema( table schema);
What is the event with a result of 3-2?.It is not neccessary to use all the tables.
SELECT MAX No. FROM table WHERE Position = Guard AND School/Club Team = Wake Forest
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest number of the guard position from the Wake Forest school team?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_19 WHERE record = "37-27"
CREATE TABLE INST, Here is a database schema( table schema);
What opponent had a record of 37-27?It is not neccessary to use all the tables.
SELECT MIN Average FROM table WHERE Wickets > 265 AND Career = 1888/89-1913/14 AND Matches > 51
CREATE TABLE INST, Here is a database schema( table schema);
Name the least average with wickets more than 265 and career of 1888/89-1913/14 and matches more than 51.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_72 WHERE player = "greg turner"
CREATE TABLE INST, Here is a database schema( table schema);
What is To par when Player is "Greg Turner"?It is not neccessary to use all the tables.
SELECT result FROM table_name_37 WHERE competition = "2010 fifa world cup qualification" AND date = "10 september 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008?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.diagnosis = "TRANSIENT ISCHEMIC ATTACK" AND lab.fluid = "Blood"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose primary disease is transient ischemic attack and lab test fluid is blood?It is not neccessary to use all the tables.