sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT MIN Total Orphans (Total) FROM table WHERE Total Orphans (AIDS Related) = < 100 AND Maternal (Total) < 31,000
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Total Orphans number when the number of Total Orphans (AIDS Related) is < 100, and the Maternal (Total) is smaller than 31,000?.It is not neccessary to use all the tables.
|
SELECT Points classification FROM table WHERE Malaysian rider classification = Suhardi Hassan AND Team classification = Japan AND Stage winner = Anuar Manan
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When anuar manan is the stage winner and the team classification is japan and suhardi hassan is the malaysian rider classification who is the points classification?.It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Country = scotland
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the score of the golfer representing Scotland?.It is not neccessary to use all the tables.
|
SELECT MIN(losses) FROM table_name_38 WHERE scored > 13 AND draws > 7
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the lowest losses with more than 13 scored and more than 7 draws?It is not neccessary to use all the tables.
|
SELECT score FROM table_name_9 WHERE date = "20/6/97"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the score on 20/6/97?It is not neccessary to use all the tables.
|
SELECT To par FROM table WHERE Player = charlie wi
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Charlie Wi's To par?.It is not neccessary to use all the tables.
|
SELECT track FROM table_name_80 WHERE pole_winner = "frank kimmel" AND event_name = "pennsylvania 200"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?It is not neccessary to use all the tables.
|
SELECT * FROM table_train_58 WHERE surgery = 1 AND antibiotic_treatment = 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
cardiovascular surgery patients receiving prophylactic peri operative antibioticsIt is not neccessary to use all the tables.
|
SELECT award FROM table_name_23 WHERE recipient = "hannah gal"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What award was Hannah Gal the recipient of?It is not neccessary to use all the tables.
|
SELECT year_s__of_manufacture FROM table_name_92 WHERE axle_arrangement = "2′b n2"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Year(s) of manufacture has an Axle arrangement of 2′b n2?It is not neccessary to use all the tables.
|
SELECT entrant FROM table_name_73 WHERE year > 1980 AND pts = 8 AND chassis = "theodore ty02"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who had 8 points later than 1980 and a theodore ty02 chassis?It is not neccessary to use all the tables.
|
SELECT Conference Titles FROM table WHERE Win % = .667
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Conference Titles, when Win % is .667?.It is not neccessary to use all the tables.
|
SELECT score FROM table_name_26 WHERE date = "august 1"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the score on august 1It is not neccessary to use all the tables.
|
SELECT "school" FROM table_203_362 WHERE "school" <> 'coleraine academical institution' AND "outright titles" = (SELECT "outright titles" FROM table_203_362 WHERE "school" = 'coleraine academical institution')
|
CREATE TABLE INST, Here is a database schema( table schema);
|
which school has the same number of outright titles as the coleraine academical institution ?It is not neccessary to use all the tables.
|
SELECT Authority FROM table WHERE Roll = 96
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the authority for roll of 96?.It is not neccessary to use all the tables.
|
SELECT joined_acc FROM table_28744929_1 WHERE location = "Chapel Hill, North Carolina"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
when did the institution at chapel hill North carolina join acc?It is not neccessary to use all the tables.
|
SELECT margin_of_victory FROM table_1121352_2 WHERE date = "Mar 28, 2004"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Where is the margin of victory dated mar 28 2004?It is not neccessary to use all the tables.
|
SELECT Nationality FROM table WHERE From = oregon state
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What nationality is the player from Oregon State?.It is not neccessary to use all the tables.
|
SELECT result FROM table_1342426_5 WHERE incumbent = "William J. Driver"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the result for william j. driverIt is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "20" AND diagnoses.icd9_code = "42731"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
count the number of patients whose age is less than 20 and diagnoses icd9 code is 42731?It is not neccessary to use all the tables.
|
SELECT COUNT(points) FROM table_name_39 WHERE team = "herdez competition" AND grid > 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was Herdez Competition's total points with a grid larger than 1?It is not neccessary to use all the tables.
|
SELECT Third place FROM table WHERE Season = 1980
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was in third place in the 1980 season?.It is not neccessary to use all the tables.
|
SELECT team FROM table_name_25 WHERE game = 59
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Team when Game is "59"?It is not neccessary to use all the tables.
|
SELECT COUNT Tracks FROM table WHERE Density = single
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many tracks have a single density?.It is not neccessary to use all the tables.
|
SELECT circuit FROM table_29686983_1 WHERE fastest_lap = "Sam Lowes" AND winning_rider = "Luca Scassa"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the circuit where the fastest lap is sam lowes and the winning rider is luca scassa?It is not neccessary to use all the tables.
|
SELECT Losing bonus FROM table WHERE Drawn = 0 AND Points = 101
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the losing bonus when drawn was 0, and there were 101 points?.It is not neccessary to use all the tables.
|
SELECT visa_3 FROM table_name_70 WHERE visa_4 = "youssouf hersi"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Visa 3 has a Visa 4 of youssouf hersi?It is not neccessary to use all the tables.
|
SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM accounts AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the customer id, first and last name with most number of accounts.It is not neccessary to use all the tables.
|
SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1885"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is 2nd Party when Election is "1885"?It is not neccessary to use all the tables.
|
SELECT venue FROM table_name_28 WHERE date = "10 september 2010"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which venue was used on 10 september 2010?It is not neccessary to use all the tables.
|
SELECT COUNT(rd__number) FROM table_name_24 WHERE reg_gp = 0 AND pick__number = 150
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the rd number where the reg GP is 0 and the pick is 150?It is not neccessary to use all the tables.
|
SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hematocrit') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22648) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY labevents.charttime LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
when was the first time that patient 22648 during this month was given a hematocrit lab test?It is not neccessary to use all the tables.
|
SELECT AVG Capacity FROM table WHERE Stadium = kadrioru stadium AND Current manager = sergei ratnikov
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the capacity for the stadium of kadrioru stadium and a current manager of sergei ratnikov?.It is not neccessary to use all the tables.
|
SELECT MAX(attendance) FROM table_14875671_1 WHERE week = 8
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the attendance in week 8?It is not neccessary to use all the tables.
|
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'endosc remove bile stone') AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t1 JOIN (SELECT admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime FROM microbiologyevents JOIN admissions ON microbiologyevents.hadm_id = admissions.hadm_id WHERE DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.spec_type_desc) AS t3 WHERE t3.c1 <= 3
|
CREATE TABLE INST, Here is a database schema( table schema);
|
since 2 years ago, what are the top three most frequent microbiology tests ordered for patients within the same month after receiving the endosc remove bile stone?It is not neccessary to use all the tables.
|
SELECT Games FROM table WHERE Pen. Min. = 22
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many games were played by the player who had 22 penalty minutes?.It is not neccessary to use all the tables.
|
SELECT AVG(goal_difference) FROM table_name_2 WHERE draw = 7 AND played > 18
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the average goal difference for draw of 7 and played more than 18It is not neccessary to use all the tables.
|
SELECT SUM A Score FROM table WHERE E Score > 9.383 AND Total < 19.716 AND T Score > 4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the total of A Score when the E Score was greater than 9.383, total was less than 19.716 and the T Score was larger than 4?.It is not neccessary to use all the tables.
|
SELECT COUNT(games_won) FROM table_27533947_1 WHERE best_winning_average = "20"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many players had a best winning average of 20?It is not neccessary to use all the tables.
|
SELECT country FROM table_name_93 WHERE player = "ian woosnam"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the country of player ian woosnam?It is not neccessary to use all the tables.
|
SELECT "Sprint" FROM table_70028 WHERE "Mass Start" = '2nd'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the sprint with mass start of 2ndIt is not neccessary to use all the tables.
|
SELECT MAX Ties FROM table WHERE Losses < 8
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest value for Ties, when Losses is less than 8?.It is not neccessary to use all the tables.
|
SELECT attendance FROM table_name_24 WHERE home_team = "f.c. central chugoku"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the attendance of the match with F.C. central chugoku as the home team?It is not neccessary to use all the tables.
|
SELECT 2004 FROM table_name_31 WHERE 2005 = "not tier i"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is 2004 when 2005 is "Not Tier I"?It is not neccessary to use all the tables.
|
SELECT AVG(week) FROM table_name_51 WHERE attendance = "49,097"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what Week was the Attendance 49097?It is not neccessary to use all the tables.
|
SELECT COUNT(year) FROM table_name_94 WHERE producer = "star cinema" AND director = "rory quintos" AND title = "kay tagal kang hinintay"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many years was Kay Tagal Kang Hinintay directed by Rory Quintos and produced by Star Cinema?It is not neccessary to use all the tables.
|
SELECT record FROM table_name_28 WHERE date = "june 10"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the record for june 10?It is not neccessary to use all the tables.
|
SELECT AVG Episode # FROM table WHERE Format # = q146
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average episode number with q146 format?.It is not neccessary to use all the tables.
|
SELECT Location Attendance FROM table WHERE High rebounds = Andray Blatche (9)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the location attendance when Andray Blatche (9) got high rebounds?.It is not neccessary to use all the tables.
|
SELECT opponent FROM table_name_64 WHERE round = "second round"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the opponent during the second round?It is not neccessary to use all the tables.
|
SELECT Team captain FROM table WHERE Shirt sponsor = sparkasse (düsseldorf)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the team captain for the team with sparkasse (düsseldorf) as the shirt sponsor?.It is not neccessary to use all the tables.
|
SELECT No. 2 FROM table WHERE No. 6 = ethan AND No. 3 = mason
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What name is in the number 2 spot when Ethan is in the number 6 spot and Mason is in the number 3 spot?.It is not neccessary to use all the tables.
|
SELECT date FROM table_name_92 WHERE time = "18:00" AND set_1 = "22–25"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When was there a Time of 18:00, and a Set 1 of 22 25?It is not neccessary to use all the tables.
|
SELECT MIN(2009) FROM table_name_18 WHERE 2010 = 141 AND 1985 > 165
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest 2009 value with a 2010 value of 141 and a 1985 value bigger than 165?It is not neccessary to use all the tables.
|
SELECT landesliga_mitte FROM table_20181270_3 WHERE bayernliga = "SV Türk Gücü München"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the landesliga mitte sv türk gücü münchenIt is not neccessary to use all the tables.
|
SELECT Mix artist FROM table WHERE Setlist = Closing Party AND Artist 1 = Dillinja and Skibadee
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the mix artist for the closing party setlist where artist 1 is Dillinja and Skibadee?.It is not neccessary to use all the tables.
|
SELECT snatch FROM table_16779068_5 WHERE body_weight = "737"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the snatch when body weight is 73.7It is not neccessary to use all the tables.
|
SELECT Champions FROM table WHERE Last/Current driver(s) September 22, 2013 = Gianmarco Raimondo
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many champions were there when the last driver was Gianmarco Raimondo?.It is not neccessary to use all the tables.
|
SELECT T3.name, T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id
|
CREATE TABLE INST, Here is a database schema( table schema);
|
List the name of a building along with the name of a company whose office is in the building.It is not neccessary to use all the tables.
|
SELECT MIN Drawn FROM table WHERE Lost = 13
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest drawn for entries with a lost of 13?.It is not neccessary to use all the tables.
|
SELECT Airdate FROM table WHERE Cable rank = 17
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What date did the episode air that had a ranking of 17 for cable?.It is not neccessary to use all the tables.
|
SELECT Batting Style FROM table WHERE Player = Javagal Srinath
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's Javagal Srinath's batting style?.It is not neccessary to use all the tables.
|
SELECT Interview subject FROM table WHERE Centerfold model = athena lundberg
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Interview subject has a Centerfold model of athena lundberg?.It is not neccessary to use all the tables.
|
SELECT COUNT(seasons) FROM table_2822193_1 WHERE series = "Formula Holden"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many seasons are there with Formula Holden?It is not neccessary to use all the tables.
|
SELECT count(DISTINCT variety) FROM sampledata15
|
CREATE TABLE INST, Here is a database schema( sampledata15);
|
How many class of products are there?. It is not neccessary to use all the tables.
|
SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which continent has the most diverse languages?It is not neccessary to use all the tables.
|
SELECT player FROM table_name_32 WHERE to_par = "+1" AND country = "england"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which player was from England with a to par of +1?It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Tie no = 15
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When has a Tie no of 15?.It is not neccessary to use all the tables.
|
SELECT AVG(survived) FROM table_name_53 WHERE to_iran < 1 AND aircraft = "brazil tucano" AND destroyed > 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the average survived with a to Iran less than 1 more than 1 destroyed and a brazil tucano aircraft?It is not neccessary to use all the tables.
|
SELECT "member" FROM table_204_659 WHERE id = (SELECT id FROM table_204_659 WHERE "member" = 'don randall') - 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
who is listed before don randall ?It is not neccessary to use all the tables.
|
SELECT tries_against FROM table_17941032_2 WHERE points_for = "150"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many tries against were there with points of 150?It is not neccessary to use all the tables.
|
SELECT SUM Points FROM table WHERE Rank = 12
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the points for rank 12?.It is not neccessary to use all the tables.
|
SELECT country FROM table_name_53 WHERE operator = "shell" AND project_name = "bonga sw; aparo"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What country did the project Bonga SW; Aparo with a shell operator take place?It is not neccessary to use all the tables.
|
SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'pleural effusion - transudate by lab analysis' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year'))
|
CREATE TABLE INST, Here is a database schema( table schema);
|
the list of the patient ids of patients diagnosed with pleural effusion - transudate by lab analysis last year.It is not neccessary to use all the tables.
|
SELECT elevator FROM table_name_74 WHERE elector = "jacques d'euse"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the elevator of Jacques D'euse?It is not neccessary to use all the tables.
|
SELECT Overall Rank FROM table WHERE Swimmer = roland schoeman
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Tell me the overall rank for roland schoeman.It is not neccessary to use all the tables.
|
SELECT Class FROM table WHERE Quantity made = 1 AND Fleet number(s) = 406
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What class had 1 made and fleet number of 406?.It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Game = 38
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the final score in game 38?.It is not neccessary to use all the tables.
|
SELECT COUNT(*) FROM products WHERE product_category_code = "Seeds"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many products are there under the category "Seeds"?It is not neccessary to use all the tables.
|
SELECT author FROM table WHERE company = ruth kanner theatre group
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Author's Company is Ruth Kanner Theatre Group?.It is not neccessary to use all the tables.
|
SELECT Home FROM table WHERE Date = november 2, 2007
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the home team for the game played on November 2, 2007?.It is not neccessary to use all the tables.
|
SELECT Director FROM table WHERE Title = little beau porky
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the director of Little Beau Porky?.It is not neccessary to use all the tables.
|
SELECT SUM(total) FROM table_name_96 WHERE player = "andy north"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many totals have andy north as the player?It is not neccessary to use all the tables.
|
SELECT MIN 10,000+ places FROM table WHERE Principal city = Louisville
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the least 10,000+ places for louisville.It is not neccessary to use all the tables.
|
SELECT partner FROM table_name_62 WHERE tournament_name = "united airlines tournament (1)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the Partner in the United Airlines Tournament (1)?It is not neccessary to use all the tables.
|
SELECT character FROM table_name_48 WHERE italian_voice_actor = "emanuela damasio"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What character does Italian voice actor Emanuela Damasio play?It is not neccessary to use all the tables.
|
SELECT COUNT Womens doubles FROM table WHERE Mixed doubles = Broddi Kristjánsson Drífa Harðardóttir
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many womens doubles had champions the years broddi kristjánsson drífa harðardóttir won mixed doubles.It is not neccessary to use all the tables.
|
SELECT tournament FROM table_name_62 WHERE 2011 = "1r" AND 2012 = "1r" AND 2005 = "a" AND 2010 = "1r"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which tournament has 1r in 2011 1r in 2012 A in 2005 and 1r in 2010?It is not neccessary to use all the tables.
|
SELECT Max. torque at rpm FROM table WHERE Displacement = 2,445 cc AND Engine = iveco 8144.61
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the maximum torque that has 2,445 CC Displacement, and an Iveco 8144.61 engine?.It is not neccessary to use all the tables.
|
SELECT Country FROM table WHERE Name = pele
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which country does the player pele belong to?.It is not neccessary to use all the tables.
|
SELECT COUNT Games FROM table WHERE Points = 10 AND Drawn > 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many games have more than 10 points and more than 2 draws?.It is not neccessary to use all the tables.
|
SELECT "Score in Final" FROM table_12709 WHERE "Opponents in Final" = 'shingo kunieda satoshi saida'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the score when the Shingo Kunieda Satoshi Saida were the opponents?It is not neccessary to use all the tables.
|
SELECT AVG Field goals FROM table WHERE Touchdowns < 15 AND Points < 45
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many field goals were there, where the points where less than 45 and there were less than 15 touchdowns?.It is not neccessary to use all the tables.
|
SELECT COUNT Agency FROM table WHERE Astronaut = Budarin Nikolai Budarin
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many agencies did Budarin Nikolai Budarin working for? .It is not neccessary to use all the tables.
|
SELECT COUNT Pick # FROM table WHERE Player = anton rodin AND Reg GP > 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total pick# played by Anton Rodin with a Reg GP over 0?.It is not neccessary to use all the tables.
|
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND date_day.day_number = 22 AND date_day.month_number = 7 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'AA'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
show me a list of flights on AA from BOSTON to WASHINGTON on 7 22It is not neccessary to use all the tables.
|
SELECT Away team score FROM table WHERE Home team = fitzroy
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In the game against home team Fitzroy, what did the away team score?.It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.short_title = "Open reduc-int fix femur"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many urgent hospital admission patients had open reduction of femur fracture with internal fixation?It is not neccessary to use all the tables.
|
SELECT pos FROM table_name_45 WHERE height = "m (ft 10in)" AND date_of_birth = "1983-05-29"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Pos. when Height is "m (ft 10in)" and when Date of Birth is "1983-05-29"?It is not neccessary to use all the tables.
|
SELECT COUNT(laps) FROM table_name_42 WHERE grid = 3
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many total laps for a grid of 3?It is not neccessary to use all the tables.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.