sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
|---|---|---|
SELECT number FROM table_name_2 WHERE builder = "baldwin locomotive works" AND works_number = 40864
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Baldwin Locomotive Works also with works number 40864 is listed as what number?It is not neccessary to use all the tables.
|
SELECT date FROM table_name_52 WHERE opponent = "seattle"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the date of the game against seattle?It is not neccessary to use all the tables.
|
SELECT COUNT 1990 FROM table WHERE to Iran = 4 AND survived < 12.0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
If 4 went to iran and the amount that survived was less than 12.0 how many were there in 1990?.It is not neccessary to use all the tables.
|
SELECT date FROM table_name_31 WHERE time = "2:16.08"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the date in which the time was 2:16.08?It is not neccessary to use all the tables.
|
SELECT No. in season FROM table WHERE Directed by = Gene Stupnitsky
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What number in season is the episode directed by Gene Stupnitsky?.It is not neccessary to use all the tables.
|
SELECT 3. FROM table WHERE Weightlifter = M. Van der Goten ( BEL )
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the 3 where weightlifter is m. van der goten ( bel ).It is not neccessary to use all the tables.
|
SELECT Title FROM table WHERE Transliteration = u lyudey-to v domu
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Title has a Transliteration of u lyudey-to v domu?.It is not neccessary to use all the tables.
|
SELECT MIN(year) FROM table_name_66 WHERE composition = "99.99% silver" AND issue_price = "$94.95"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the earliest year when the composition is 99.99% silver and the issue price is $94.95?It is not neccessary to use all the tables.
|
SELECT COUNT(july_1), _2013_projection FROM table_name_58 WHERE rank = "27"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many July 1 2013 projections have a Rank of 27?It is not neccessary to use all the tables.
|
SELECT Team #2 FROM table WHERE 1st leg = 70 - 44
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Team #2 has a 1st leg of 70 - 44?.It is not neccessary to use all the tables.
|
SELECT shigella FROM table_name_52 WHERE yersinia = "yopb"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Tell me the shigella for yersinia yopbIt is not neccessary to use all the tables.
|
SELECT Player FROM table WHERE Tries = 23
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Player has 23 Tries?.It is not neccessary to use all the tables.
|
SELECT MIN Games FROM table WHERE Team = aris thessaloniki AND Points < 120
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest game number with Aris Thessaloniki with points smaller than 120?.It is not neccessary to use all the tables.
|
SELECT AVG(population) FROM table_name_24 WHERE density__pop_per_km_2__ < 487 AND rank = 9 AND area__km_2__ > 377 OFFSET 944
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average population of the region with a density less than 487 a rank of 9 and an area larger than 377944?It is not neccessary to use all the tables.
|
SELECT SUM(challenge_cup) FROM table_name_90 WHERE league = 1 AND player = "simon storey" AND total > 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Challenge Cup total with a League of 1 Player Simon Storey and a Total greater than 1?It is not neccessary to use all the tables.
|
SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Find the names of the users whose number of followers is greater than that of the user named "Tyler Swift".It is not neccessary to use all the tables.
|
SELECT MIN(points) FROM table_24108789_6 WHERE _number = 6
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the least points for number 6It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Set 3 = 18-25
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When was set 3 of 18-25?.It is not neccessary to use all the tables.
|
SELECT home_team FROM table_name_87 WHERE venue = "princes park"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the home team for the Princes Park venue?It is not neccessary to use all the tables.
|
SELECT MAX(pick__number) FROM table_2508633_6 WHERE college = "Illinois"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the most pick number for illinoisIt is not neccessary to use all the tables.
|
SELECT date FROM table_name_79 WHERE record = "21-25"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
On what date was the record 21-25?It is not neccessary to use all the tables.
|
SELECT Date founded/ founder FROM table 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 AVG Win average FROM table WHERE Nationality = german AND Name = rudi altig AND Races ridden > 79
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average win as a percentage of German racer Rudi Altig, who has ridden in over 79 races?.It is not neccessary to use all the tables.
|
SELECT COUNT(year) FROM table_name_84 WHERE machine = "rg500" AND points > 17
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what Year did the RG500 Machine have more than 17 Points?It is not neccessary to use all the tables.
|
SELECT Away team FROM table WHERE Date = 10 january 1979 AND Tie no = 17
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the away team on 10 January 1979 who had a tie no of 17?.It is not neccessary to use all the tables.
|
SELECT SUM(season) FROM table_name_40 WHERE score = "1:3" AND venue = "national stadium, maldives"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which season was there a game with the score of 1:3 played at the venue of national stadium, maldives?It is not neccessary to use all the tables.
|
SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = "San Jose State University" AND t2.year = 2000
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many degrees were conferred in "San Jose State University" in 2000?It is not neccessary to use all the tables.
|
SELECT Verb meaning FROM table WHERE Class = 6
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the meaning of the class 6 verbs?.It is not neccessary to use all the tables.
|
SELECT Dist (f) FROM table WHERE Race = irish derby
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Dist (f) has a Race of irish derby?.It is not neccessary to use all the tables.
|
SELECT Attendance FROM table WHERE Opponent = new orleans saints
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the attendance when they played the New Orleans Saints?.It is not neccessary to use all the tables.
|
SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-7984' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'cefepime'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
count the number of times patient 004-7984 was taking cefepime when they came to the hospital last time.It is not neccessary to use all the tables.
|
SELECT Articulatory class FROM table WHERE Aspirated stop = ㅍ
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Articulatory class has and Aspirated stop of ㅍ?.It is not neccessary to use all the tables.
|
SELECT round FROM table_name_92 WHERE res = "loss" AND event = "ufc 118"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what round was the loss at ufc 118?It is not neccessary to use all the tables.
|
SELECT 1 AS st_round FROM table_name_65 WHERE team_1 = "sporting toulon var (d2)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is 1st Round when Team 1 is Sporting Toulon Var (D2)?It is not neccessary to use all the tables.
|
SELECT "call sign" FROM table_203_749 WHERE id = 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what station is on top of the list ?It is not neccessary to use all the tables.
|
SELECT SUM(1955) FROM table_name_7 WHERE 1956 > 2.9 AND 1953 > 4.5
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the 1955 rate when the 1956 is more than 2.9 and 1953 is larger than 4.5?It is not neccessary to use all the tables.
|
SELECT points_against FROM table_name_81 WHERE played = "22" AND lost = "6"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the points against for the team that played 22 and lost 6?It is not neccessary to use all the tables.
|
SELECT Occupation FROM table WHERE Residence = windsor junction
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the occupation of the candidate that resides in Windsor Junction?.It is not neccessary to use all the tables.
|
SELECT Opponent FROM table WHERE Week = 8
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who did the Chiefs play in Week 8?.It is not neccessary to use all the tables.
|
SELECT name FROM table_name_83 WHERE weight = "kg (lb)" AND club = "gezira" AND date_of_birth = "1974-02-18"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Name when Weight is "kg (lb)" when Club is "Gezira" and when Date of Birth is "1974-02-18"?It is not neccessary to use all the tables.
|
SELECT score FROM table_name_68 WHERE year > 1980 AND margin_of_victory = "2 strokes" AND country = "united states" AND player = "jim furyk"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Score has a Year larger than 1980 and a Margin of victory of 2 strokes and a Country of united states and a Player of jim furyk?It is not neccessary to use all the tables.
|
SELECT last_5_meetings FROM table_name_85 WHERE current_streak = "l 1"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the result of the last 5 meetings for a team with an L 1 streak?It is not neccessary to use all the tables.
|
SELECT October FROM table WHERE Opponent = toronto maple leafs
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What date in October did the Flyers play against the Toronto Maple Leafs?.It is not neccessary to use all the tables.
|
SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.It is not neccessary to use all the tables.
|
SELECT Series # FROM table WHERE U.S. viewers (millions) = 20.64
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What series number garnered 20.64 million viewers?.It is not neccessary to use all the tables.
|
SELECT tallangatta_dfl FROM table_name_49 WHERE against > 1013 AND losses > 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Tallangatta DFL losses greater than 2 and an against greater than 1013It is not neccessary to use all the tables.
|
SELECT record FROM table_27712702_8 WHERE date = "December 27"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the record on December 27?It is not neccessary to use all the tables.
|
SELECT MIN(rank) FROM table_name_61 WHERE constituency = "edinburgh northern and leith" AND swing_to_gain < 4.16
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16?It is not neccessary to use all the tables.
|
SELECT SUM("Silver") FROM table_14293 WHERE "Bronze" < '1' AND "Total" = '2'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many silver medals when the total was 2 and less than 1 bronze?It is not neccessary to use all the tables.
|
SELECT capital FROM table_1404414_2 WHERE population_census_2009 = 596268
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What capital has a population of 596268?It is not neccessary to use all the tables.
|
SELECT COUNT("nation") FROM table_203_739 WHERE "silver" <> 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many nations received silver medals ?It is not neccessary to use all the tables.
|
SELECT competition FROM table_name_13 WHERE year < 2009 AND notes = "56.16 m"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Competition has a Year smaller than 2009 and Notes of 56.16 m?It is not neccessary to use all the tables.
|
SELECT Director FROM table WHERE Original title = o.k.
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who were the directors of the film with the original title o.k.?.It is not neccessary to use all the tables.
|
SELECT District FROM table WHERE Incumbent = John Linder
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what district is the incumbent John Linder?.It is not neccessary to use all the tables.
|
SELECT COUNT(attendance) FROM table_name_12 WHERE week = 16
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Tell me the total number of attendance for week of 16It is not neccessary to use all the tables.
|
SELECT "Road Team" FROM table_8076 WHERE "Result" = '105-95'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Road Team in the game with a Result of 105-95?It is not neccessary to use all the tables.
|
SELECT top_speed FROM table_1857216_1 WHERE production = "2006-2009" AND transmission = "5-speed manual"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the top speed of a 5-speed manual transmission produced in 2006-2009?It is not neccessary to use all the tables.
|
SELECT "Venue" FROM table_32047 WHERE "Competition" = 'paris marathon'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Where did the Paris Marathon occur?It is not neccessary to use all the tables.
|
SELECT format FROM table_name_58 WHERE frequency = "fm 94.5"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the format when the frequency is fm 94.5?It is not neccessary to use all the tables.
|
SELECT "album" FROM table_203_512 WHERE id = 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
pulse was the first album what was the second ?It is not neccessary to use all the tables.
|
SELECT "Winner" FROM table_34393 WHERE "Score" = '274 (–14)' AND "Location" = 'tennessee'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the name of the winner when the Score was 274 ( 14) in tennessee?It is not neccessary to use all the tables.
|
SELECT SUM(game) FROM table_name_27 WHERE record = "17-29"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score of the scores when Game had a Record of 17-29?It is not neccessary to use all the tables.
|
SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type AS T1 JOIN Has_Allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" GROUP BY AllergyType ORDER BY AllergyType
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the number of each allergie type that the student with first name Lisa has? Visualize by bar chart, display bar in asc order.It is not neccessary to use all the tables.
|
SELECT opponent FROM table_name_6 WHERE score = "3-2" AND loss = "anderson (2-6)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What opponent has 3-2 as the score and anderson (2-6) as a loss?It is not neccessary to use all the tables.
|
SELECT MAX Money ( $ ) FROM table WHERE Place = t4 AND Player = tiger woods
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the largest money for a t4 place, for Tiger Woods?.It is not neccessary to use all the tables.
|
SELECT region_of_ussr FROM table_16048129_5 WHERE _percentage_of_total_deportees = "10.6"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What regions of the USSR have a percentage of deportees of 10.6?It is not neccessary to use all the tables.
|
SELECT score FROM table_name_97 WHERE date = "may 11"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Score when Date is "May 11"?It is not neccessary to use all the tables.
|
SELECT MAX Heat Rank FROM table WHERE Overall Rank = t63 AND Time < 25.47
|
CREATE TABLE INST, Here is a database schema( table schema);
|
I want to know the highest heat rank for overall rank of t63 and time less than 25.47.It is not neccessary to use all the tables.
|
SELECT hits FROM table_name_86 WHERE year < 1883
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the hits for years before 1883It is not neccessary to use all the tables.
|
SELECT MAX Rank FROM table WHERE Name = josefin lillhage
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest rank for Josefin Lillhage?.It is not neccessary to use all the tables.
|
SELECT Yacht FROM table WHERE Skipper = Andrew Saies
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What yacht did Andrew Saies sail on?.It is not neccessary to use all the tables.
|
SELECT country FROM table_name_83 WHERE rank = 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What nationality is the player ranked 2?It is not neccessary to use all the tables.
|
SELECT Place FROM table WHERE To par = +1 AND Player = dave stockton
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What place was Dave Stockton when he had a to par of +1?.It is not neccessary to use all the tables.
|
SELECT nationality FROM table_2679061_9 WHERE pick__number = 168
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the nationality of player picked no. 168?It is not neccessary to use all the tables.
|
SELECT location FROM table_name_27 WHERE loser = "aaron grundy"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the location where aaron grundy was the loser?It is not neccessary to use all the tables.
|
SELECT COUNT(director) FROM table_15026994_2 WHERE writer = "Gaby Chiappe"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many different directors are associated with the writer Gaby Chiappe?It is not neccessary to use all the tables.
|
SELECT 1991 FROM table_name_26 WHERE 1997 = "18"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the 1991 when 1997 is 18?It is not neccessary to use all the tables.
|
SELECT Competition FROM table WHERE Town = budva AND Opponent = italy
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the competition played in budva against italy?.It is not neccessary to use all the tables.
|
SELECT 2009 FROM table WHERE Tournament = tournaments played
|
CREATE TABLE INST, Here is a database schema( table schema);
|
WHAT IS THE 2009 PERFORMANCE FOR TOURNAMENTS PLAYED?.It is not neccessary to use all the tables.
|
SELECT stage FROM table_21326205_2 WHERE rally_leader = "Sébastien Loeb" AND name = "Tempo 2"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In which special stage named Tempo 2 was Sébastien Loeb the leader?It is not neccessary to use all the tables.
|
SELECT MAX(capacity) FROM table_name_97 WHERE location = "aslantepe" AND year = "2002-2005"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest capacity in Aslantepe in 2002-2005?It is not neccessary to use all the tables.
|
SELECT Attendance FROM table WHERE Week = 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the attendance on week 1?.It is not neccessary to use all the tables.
|
SELECT Away team score FROM table WHERE Venue = lake oval
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the away team's score in the match at Lake Oval?.It is not neccessary to use all the tables.
|
SELECT AVG Total FROM table WHERE Country = united states AND Year(s) won = 1978
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the average total for the player from the United States, who won in 1978?.It is not neccessary to use all the tables.
|
SELECT historical_photos FROM table_name_46 WHERE location = "prospect 43 prospect ave"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Historical Photos were taken at prospect 43 prospect ave?It is not neccessary to use all the tables.
|
SELECT COUNT Round FROM table WHERE College = lehigh
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many total rounds has lehigh as the college?.It is not neccessary to use all the tables.
|
SELECT Event FROM table WHERE Year = 2002 AND Competition = european indoor championships
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Event, when Year is 2002, and when Competition is European Indoor Championships?.It is not neccessary to use all the tables.
|
SELECT COUNT Outcome FROM table WHERE Partner = Paul McNamee
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many different outcomes did the final with Paul McNamee as a partner have?.It is not neccessary to use all the tables.
|
SELECT COUNT Status FROM table WHERE Entrant = James Finch
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many status figures does James Finch have?.It is not neccessary to use all the tables.
|
SELECT AVG Ties FROM table WHERE Wins < 5 AND Goals Against > 37 AND Games Played < 8
|
CREATE TABLE INST, Here is a database schema( table schema);
|
For teams with fewer than 5 wins, goals against over 37, and fewer than 8 games played, what is the average number of ties?.It is not neccessary to use all the tables.
|
SELECT opponent FROM table_name_25 WHERE week = 13
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the opponent in week 13?It is not neccessary to use all the tables.
|
SELECT SUM Round FROM table WHERE Position = db AND Name = jeff welch AND Pick < 21
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total round when DB was the position, and the pick less than 21, and Jeff Welch as the name?.It is not neccessary to use all the tables.
|
SELECT MAX(no_in_series) FROM table_14724369_1 WHERE production_code = "1ACX03"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the first number in series that had the production code 1ACX03?It is not neccessary to use all the tables.
|
SELECT attendance FROM table_name_76 WHERE date = "september 12"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the total attendance on September 12?It is not neccessary to use all the tables.
|
SELECT home_team FROM table_name_68 WHERE away_team = "st kilda"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What home team played against St Kilda?It is not neccessary to use all the tables.
|
SELECT AVG Pass Def FROM table WHERE Team = green bay packers AND Solo = 62 AND Sacks < 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?.It is not neccessary to use all the tables.
|
SELECT AVG(fa_trophy) FROM table_name_52 WHERE player = "mario walsh" AND league > 17
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many FA Trophy has a Player of mario walsh and a League larger than 17?It is not neccessary to use all the tables.
|
SELECT Attendance FROM table WHERE Week = 15
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the attendance during week 15?.It is not neccessary to use all the tables.
|
SELECT SUM Seats FROM table WHERE Quantity > 45
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many seats have a quantity over 45?.It is not neccessary to use all the tables.
|
SELECT T1.role_code, COUNT(*) FROM Roles AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many employees does each role have? List role id and number of employees in a pie chart.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.