instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
What is the signal power for JOAB-DTV?
### Response:
| SELECT signal_power FROM table_2638104_1 WHERE callsign = "JOAB-DTV" |
### Instruction:
A bar chart about how many captains are in each rank?, and could you order by the X-axis from high to low?
### Response:
| SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY Rank DESC |
### Instruction:
What is the number of members that have boroughs of Bandon Bridge?
### Response:
| SELECT COUNT("Members") FROM table_3034 WHERE "Borough" = 'Bandon Bridge' |
### Instruction:
What label has brol 34531 as it's catalogue?
### Response:
| SELECT label FROM table_name_31 WHERE catalogue = "brol 34531" |
### Instruction:
Name the type for 1245 enrollment
### Response:
| SELECT "Type" FROM table_2341 WHERE "Enrollment (2005)" = '1245' |
### Instruction:
Name the most legs for steinlager 2
### Response:
| SELECT MAX("Legs") FROM table_27993 WHERE "Winning yacht" = 'Steinlager 2' |
### Instruction:
which was the only diocese established before 1900 ?
### Response:
| SELECT "latin name" FROM table_204_10 WHERE "established" < 1900 |
### Instruction:
Which Image attachment has a Threaded of yes, and a Calendar of yes?
### Response:
| SELECT image_attachment FROM table_name_44 WHERE threaded = "yes" AND calendar = "yes" |
### Instruction:
what is the average score for s ren kjeldsen?
### Response:
| SELECT AVG("Score") FROM table_65480 WHERE "Player" = 'søren kjeldsen' |
### Instruction:
Tell me the height which has a surpassed by of book tower
### Response:
| SELECT "Height feet/m" FROM table_10582 WHERE "Surpassed by" = 'book tower' |
### Instruction:
What is Longitude, when Name is Raskova Paterae?
### Response:
| SELECT "Longitude" FROM table_77200 WHERE "Name" = 'raskova paterae' |
### Instruction:
how many station are located in kita ku , okayama ?
### Response:
| SELECT COUNT(*) FROM table_203_273 WHERE "location" = 'kita-ku, okayama' |
### Instruction:
What is the title when the writer is Emily Halpern?
### Response:
| SELECT title FROM table_24910733_1 WHERE written_by = "Emily Halpern" |
### Instruction:
What is the least number of people to attend a game when Los Angeles was the home team?
### Response:
| SELECT MIN(attendance) FROM table_name_97 WHERE home = "los angeles" |
### Instruction:
What Goalkeeper has MINS less than 2160
### Response:
| SELECT "Goalkeeper" FROM table_40772 WHERE "MINS" < '2160' |
### Instruction:
Which general election had a vote swing of 1.84?
### Response:
| SELECT general_election FROM table_149330_1 WHERE votes_swing = "1.84" |
### Instruction:
What is the name of the player with total offense of 454?
### Response:
| SELECT "Player" FROM table_30690 WHERE "Total offense" = '454' |
### Instruction:
What date was the award of 6,600 was given?
### Response:
| SELECT "Date" FROM table_70907 WHERE "Award" = '£6,600' |
### Instruction:
What was the position of the team Minneapolis Lakers during round T?
### Response:
| SELECT position FROM table_name_62 WHERE round = "t" AND team = "minneapolis lakers" |
### Instruction:
What is the group a winner for modena?
### Response:
| SELECT group_a_winner FROM table_1137142_1 WHERE group_b_winner = "Modena" |
### Instruction:
What is the % of seats where the difference is 0.19?
### Response:
| SELECT _percentage_of_seats FROM table_name_92 WHERE difference = "0.19" |
### Instruction:
Please name the highest Conceded which has a Played smaller than 5?
### Response:
| SELECT MAX("Conceded") FROM table_45253 WHERE "Played" < '5' |
### Instruction:
specify the drug name patient id 6983 is treated with?
### Response:
| SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.subject_id = "6983" |
### Instruction:
Name the total number of air dates for 05 cycle
### Response:
| SELECT COUNT(air_dates) FROM table_16976547_2 WHERE cycle_no = "05" |
### Instruction:
What college did the player with a school of crete-monee high school go to?
### Response:
| SELECT college FROM table_name_83 WHERE school = "crete-monee high school" |
### Instruction:
How many silver medals were there with 2 gold medals and more than 2 bronze medals?
### Response:
| SELECT silver FROM table_name_11 WHERE gold = 2 AND bronze > 2 |
### Instruction:
What is the to par that has jimmy hines as the player?
### Response:
| SELECT "To par" FROM table_68287 WHERE "Player" = 'jimmy hines' |
### Instruction:
What is the attendance of the match with maidsone united as the away team?
### Response:
| SELECT attendance FROM table_name_13 WHERE away_team = "maidsone united" |
### Instruction:
how many kana spelling when english is mount fuji
### Response:
| SELECT kana_spelling FROM table_26263954_1 WHERE english = "Mount Fuji" |
### Instruction:
Who was partnering when nueza silva played against greece?
### Response:
| SELECT "Partnering" FROM table_44334 WHERE "Against" = 'greece' |
### Instruction:
How many battles resulted in Battle of the Yellow Sea?
### Response:
| SELECT COUNT("Result") FROM table_3686 WHERE "Battles" = 'Battle of the Yellow Sea' |
### Instruction:
What are the transit connections from Pioneer Square U?
### Response:
| SELECT "Transit Connections" FROM table_25301 WHERE "Station" = 'Pioneer Square U' |
### Instruction:
What year is the event in athens, greece?
### Response:
| SELECT MAX("Year") FROM table_11121 WHERE "Venue" = 'athens, greece' |
### Instruction:
Which Date has a Record of 11 10 2?
### Response:
| SELECT "Date" FROM table_49319 WHERE "Record" = '11–10–2' |
### Instruction:
Name the first elected for abner j. mikva
### Response:
| SELECT "First elected" FROM table_72396 WHERE "Incumbent" = 'Abner J. Mikva' |
### Instruction:
Name the number of episodes for s hacksaw
### Response:
| SELECT COUNT(episode) FROM table_15187735_8 WHERE segment_b = "s Hacksaw" |
### Instruction:
When tajik is the ethnicity what is islam?
### Response:
| SELECT "Islam" FROM table_20936 WHERE "Ethnicity" = 'Tajik' |
### Instruction:
What Replica has a race of supersport race 1?
### Response:
| SELECT "Replica" FROM table_70699 WHERE "Race" = 'supersport race 1' |
### Instruction:
What was the North Melbourne's score when they played as the home team?
### Response:
| SELECT "Home team score" FROM table_4739 WHERE "Home team" = 'north melbourne' |
### Instruction:
Which Opponent has a Score of 4 5 ot?
### Response:
| SELECT "Opponent" FROM table_5418 WHERE "Score" = '4–5 ot' |
### Instruction:
Which order has the most recent shipment? Give me the order id.
### Response:
| SELECT order_id FROM shipments WHERE shipment_date = (SELECT MAX(shipment_date) FROM shipments) |
### Instruction:
when was the last premier date of academy fantasia ?
### Response:
| SELECT "premiere date" FROM table_203_288 ORDER BY "premiere date" DESC LIMIT 1 |
### Instruction:
Director for Star Wars Episode II: attack of the clones?
### Response:
| SELECT director_s_ FROM table_name_92 WHERE title = "star wars episode ii: attack of the clones" |
### Instruction:
Name the place of action for the marine corps and corporal rank
### Response:
| SELECT place_of_action FROM table_name_45 WHERE service = "marine corps" AND rank = "corporal" |
### Instruction:
What was the nickname Established in 2002?
### Response:
| SELECT "Nickname" FROM table_1456 WHERE "Established" = '2002' |
### Instruction:
How many episodes are numbered 4 in the season?
### Response:
| SELECT COUNT(patient_portrayer) FROM table_26561506_1 WHERE _number = 4 |
### Instruction:
Which Line has a Stopping pattern of all stations, A, b, p?
### Response:
| SELECT line FROM table_name_59 WHERE stopping_pattern = "all stations, a, b, p" |
### Instruction:
what is drug code of drug name caphosol?
### Response:
| SELECT prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Caphosol" |
### Instruction:
What is the term limit for Senator Tom Niehaus?
### Response:
| SELECT MIN(term_limited) FROM table_26129220_2 WHERE senator = "Tom Niehaus" |
### Instruction:
WHAT IS THE RECORD FOR THE GAME SMALLER THAN 31?
### Response:
| SELECT "Record" FROM table_8695 WHERE "Game" < '31' |
### Instruction:
Who is the outgoing manager who was replaced by j rgen klopp?
### Response:
| SELECT outgoing_manager FROM table_name_64 WHERE replaced_by = "jürgen klopp" |
### Instruction:
What is the name of the player in position lb and an overall of 128?
### Response:
| SELECT player FROM table_name_65 WHERE position = "lb" AND overall = 128 |
### Instruction:
What is the name of the director who directed the movie that Raintree Pictures produced?
### Response:
| SELECT "Director" FROM table_6959 WHERE "Producer" = 'raintree pictures' |
### Instruction:
what is the only radio station with a frequency below 90 mhz ?
### Response:
| SELECT "branding" FROM table_204_164 WHERE "frequency" < 90 |
### Instruction:
What team has an incoming manager named Kenny Dalglish?
### Response:
| SELECT team FROM table_24172157_3 WHERE incoming_manager = "Kenny Dalglish" |
### Instruction:
Score of 119-115 (ot) involved what location?
### Response:
| SELECT location FROM table_name_16 WHERE score = "119-115 (ot)" |
### Instruction:
What was the lowest placement with a final of 23.92?
### Response:
| SELECT MIN(placement) FROM table_name_38 WHERE final = "23.92" |
### Instruction:
What was the score on June 28, 2009?
### Response:
| SELECT score FROM table_name_56 WHERE date = "june 28, 2009" |
### Instruction:
What is the sum of the points of the club with more than 34 played?
### Response:
| SELECT SUM("Points") FROM table_62141 WHERE "Played" > '34' |
### Instruction:
Name the appearances for bernard allou
### Response:
| SELECT "Appearances\u00b9" FROM table_26960 WHERE "Name" = 'Bernard Allou' |
### Instruction:
What is the highest number of silver medals for a team with total less than 1?
### Response:
| SELECT MAX("Silver") FROM table_78125 WHERE "Total" < '1' |
### Instruction:
Get all answers containing 'help me'.
### Response:
| SELECT Id AS "post_link", Body, Score FROM Posts WHERE PostTypeId = 2 AND (Body LIKE '%please help me%') |
### Instruction:
What episode was the last appearance of the character, rikki sandoval?
### Response:
| SELECT "Last appearance" FROM table_16568 WHERE "Character" = 'Rikki Sandoval' |
### Instruction:
How many games were recorded with Goals for number of 215?
### Response:
| SELECT COUNT("Games") FROM table_9167 WHERE "Goals For" = '215' |
### Instruction:
body mass index ( bmi ) below or equal to 35 kg / m^2
### Response:
| SELECT * FROM table_dev_14 WHERE body_mass_index_bmi <= 35 |
### Instruction:
Which Final has a Team of liechtenstein (lie) liechtenstein i?
### Response:
| SELECT final FROM table_name_55 WHERE team = "liechtenstein (lie) liechtenstein i" |
### Instruction:
What are the nationalities of players who attended duke?
### Response:
| SELECT COUNT("Nationality") FROM table_20861 WHERE "School/Club Team" = 'Duke' |
### Instruction:
What was the date of the game when the record of the series was 0 1?
### Response:
| SELECT "Date" FROM table_51275 WHERE "Series" = '0–1' |
### Instruction:
Name the maaidens where overs bowled is 13
### Response:
| SELECT "Maidens" FROM table_72707 WHERE "Overs Bowled" = '13' |
### Instruction:
What is the total number of titles written by Casey Johnson?
### Response:
| SELECT COUNT(title) FROM table_12419515_4 WHERE written_by = "Casey Johnson" |
### Instruction:
What is the settlement destiny in Aleksandrovo?
### Response:
| SELECT "Settlement destiny" FROM table_27905 WHERE "Settlement" = 'Aleksandrovo' |
### Instruction:
What are card ids, customer ids, card types, and card numbers for each customer card?
### Response:
| SELECT card_id, customer_id, card_type_code, card_number FROM customers_cards |
### Instruction:
What is the date of game 3 with Boston as the road team?
### Response:
| SELECT date FROM table_name_56 WHERE road_team = "boston" AND game = "game 3" |
### Instruction:
Show total number of id from each nationality, and display total number in ascending order please.
### Response:
| SELECT Nationality, SUM(ID) FROM swimmer GROUP BY Nationality ORDER BY SUM(ID) |
### Instruction:
What was the score of the Home team that played against Carlton's Away game?
### Response:
| SELECT home_team AS score FROM table_name_3 WHERE away_team = "carlton" |
### Instruction:
what is the outcome on april 24, 1988?
### Response:
| SELECT outcome FROM table_name_20 WHERE date = "april 24, 1988" |
### Instruction:
Name the median income for age band being under 20
### Response:
| SELECT median_income FROM table_14946657_3 WHERE age_band = "Under 20" |
### Instruction:
What is the route for the destination of guruvayur?
### Response:
| SELECT "Route/Via." FROM table_4240 WHERE "Destination" = 'Guruvayur' |
### Instruction:
What is the lowest amount of points of the game with toronto as the home team?
### Response:
| SELECT MIN("Points") FROM table_76502 WHERE "Home" = 'toronto' |
### Instruction:
What is the lowest tier for a postseason result of quarterfinalist?
### Response:
| SELECT MIN("Tier") FROM table_5237 WHERE "Postseason" = 'quarterfinalist' |
### Instruction:
what is the procedure icd9 code for the patient id 3343?
### Response:
| SELECT procedures.icd9_code FROM procedures WHERE procedures.subject_id = "3343" |
### Instruction:
What is the crowd size when the away team was South Melbourne?
### Response:
| SELECT SUM("Crowd") FROM table_56220 WHERE "Away team" = 'south melbourne' |
### Instruction:
How many rounds did shirley van der lof go?
### Response:
| SELECT "Rounds" FROM table_59641 WHERE "Driver" = 'shirley van der lof' |
### Instruction:
How many different skippers of the yacht City Index Leopard?
### Response:
| SELECT COUNT("Skipper") FROM table_19638 WHERE "Yacht" = 'City Index Leopard' |
### Instruction:
How many episodes are written by Lew Schneider?
### Response:
| SELECT COUNT(series__number) FROM table_25356350_2 WHERE written_by = "Lew Schneider" |
### Instruction:
Name the total number for period of validity for upper volta
### Response:
| SELECT COUNT("Period of validity") FROM table_73368 WHERE "Former country name" = 'Upper Volta' |
### Instruction:
What is the sum rating with more than 1 comp for mark miller?
### Response:
| SELECT COUNT(rating) FROM table_name_78 WHERE player = "mark miller" AND comp > 1 |
### Instruction:
What's Eli Bremer's fencing score?
### Response:
| SELECT fencing FROM table_12407546_1 WHERE athlete__noc_ = "Eli Bremer" |
### Instruction:
What was coach Dick Bennett's overall win percentage?
### Response:
| SELECT "Overall Win Percentage" FROM table_33721 WHERE "Coach" = 'dick bennett' |
### Instruction:
what is the name of the episode whose number of the series episode was 31?
### Response:
| SELECT title FROM table_228973_3 WHERE no_in_series = 31 |
### Instruction:
What is the total number of modern grannies performed?
### Response:
| SELECT COUNT("Act") FROM table_30362 WHERE "Name/Name of Act" = 'Modern Grannies' |
### Instruction:
How many total golds do teams have when the total medals is less than 1?
### Response:
| SELECT SUM("Gold") FROM table_76572 WHERE "Total" < '1' |
### Instruction:
what are the number of courthouses located in aberdeen ?
### Response:
| SELECT COUNT("courthouse") FROM table_204_87 WHERE "city" = 'aberdeen' |
### Instruction:
Give me the comparison about ID over the meter_400 by a bar chart, show in descending by the ID.
### Response:
| SELECT meter_400, ID FROM swimmer ORDER BY ID DESC |
### Instruction:
How long is the rollar coaster on Kemah Boardwalk
### Response:
| SELECT length__ft_ FROM table_2665085_1 WHERE park = "Kemah Boardwalk" |
### Instruction:
What position did the winnipeg blue bombers draft?
### Response:
| SELECT "Position" FROM table_20900 WHERE "CFL Team" = 'Winnipeg Blue Bombers' |
### Instruction:
let me know the birth date and gender of patient claude chipman.
### Response:
| SELECT demographic.dob, demographic.gender FROM demographic WHERE demographic.name = "Claude Chipman" |
### Instruction:
Name the sanskrit word and meaning for aquarius
### Response:
| SELECT "Sanskrit word and meaning" FROM table_23669 WHERE "Zodiac sign" = 'Aquarius' |
### Instruction:
What is the average year with 7th (heats) position?
### Response:
| SELECT AVG("Year") FROM table_61538 WHERE "Position" = '7th (heats)' |
### Instruction:
for patient id 2560, calculate the duration of hospital stay.
### Response:
| SELECT demographic.days_stay FROM demographic WHERE demographic.subject_id = "2560" |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.