Simple Question (Direct)
Simple Question
Q16594865
P21
Q290
USER
Which sex does Ingegerd Fries have ?
(Q16594865,P21,c(Q290))
action filter_type
action find
entity Q16594865
relation P21
type Q290
['Q16594865', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q16594865 property:P21 ?q }
Ingegerd Fries
action filter_type
action find
entity Ingegerd Fries
relation gender
type sex
['Ingegerd Fries', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Ingegerd_Fries property:gender ?q }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q16594865,P21,c(Q290))
action filter_type
action find
entity Q16594865
relation P21
type Q290
Ingegerd Fries has a [ANSWER]
['Q16594865', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q16594865 property:P21 ?q }
female
Ingegerd Fries has a female
female
action filter_type
action find
entity Ingegerd Fries
relation gender
type sex
['Ingegerd Fries', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Ingegerd_Fries property:gender ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581072
P136
Q502895
USER
Which people as that sex as their class ?
(c(Q502895),P136,Q6581072)
action filter_type
action find_reverse
entity Q6581072
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581072']
SELECT DISTINCT ?t WHERE { ?t property:P136 resource:Q6581072 . ?t rdf:type ontology:Q502895 }
female
action filter_type
action find_reverse
entity female
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'female']
SELECT DISTINCT ?t WHERE { ?t property:genre resource:female . ?t rdf:type ontology:common_name }
[]
common name
Q19831537 Q23688633
SYSTEM
Luisa María Martí García, Eva Jospin
Q19831537 Q23688633
(c(Q502895),P136,Q6581072)
action filter_type
action find_reverse
entity Q6581072
relation P136
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P136', 'Q6581072']
SELECT DISTINCT ?t WHERE { ?t property:P136 resource:Q6581072 . ?t rdf:type ontology:Q502895 }
Luisa María Martí García Eva Jospin
Luisa María Martí García Eva Jospin
action filter_type
action find_reverse
entity female
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'female']
SELECT DISTINCT ?t WHERE { ?t property:genre resource:female . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q502895 Q2342494 Q2198855
USER
Which people were atmost 1 collectables or cultural movements inspired by ?
(c(Q2342494)|c(Q2198855),P941,c(Q502895))
action atmost
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q2198855'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?u ) WHERE { { ?b rdf:type ontology:Q502895 . ?x rdf:type ontology:Q2342494 . ?x property:P941 ?b } UNION { ?x property:P941 ?b . ?b rdf:type ontology:Q502895 . ?x rdf:type ontology:Q2198855 } } GROUP BY ?b } . FILTER ( ?u <= 1 ) }
action atmost
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type collectable
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
value 1
[[{'concept': 'collectable'}, {'concept': 'cultural movement'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?u ) WHERE { { ?b rdf:type ontology:common_name . ?x rdf:type ontology:collectable . ?x property:inspired_by ?b } UNION { ?x property:inspired_by ?b . ?b rdf:type ontology:common_name . ?x rdf:type ontology:cultural_movement } } GROUP BY ?b } . FILTER ( ?u <= 1 ) }
[]
common name collectable cultural movement
Q8016 Q352 Q1744
SYSTEM
Winston Churchill, Adolf Hitler, Madonna
Q207939 Q19738291 Q23380 Q3481979 Q40475 Q366380 Q334001 Q42229 Q5296307 Q19526 Q58801 Q129308 Q42305 Q558333 Q207447 Q560792 Q35548 Q1067550 Q2707376 Q180919 Q105719 Q205002 Q30755 Q37693 Q712955 Q302650 Q666171 Q531161 Q5383 Q8016 Q456270 Q127171 Q649801 Q43715 Q42786 Q5361548 Q312502 Q2864567 Q154545 Q5534471 Q2907490 Q1532260 Q892444 Q164823 Q184226 Q228024 Q182450 Q183221 Q3047248 Q2617543 Q711129 Q81960 Q5592 Q352 Q145746 Q921798 Q7836 Q5594 Q538158 Q3984877 Q3741372 Q1508997 Q116462 Q357786 Q1779 Q310476 Q183458 Q34618 Q151573 Q3560424 Q947525 Q156268 Q56016 Q458779 Q73089 Q182462 Q1353414 Q575668 Q171745 Q100937 Q5669 Q5577 Q395274 Q272068 Q2437296 Q9077 Q443540 Q966425 Q1281170 Q47551 Q357951 Q676001 Q46373 Q5675905 Q267803 Q37079 Q103343 Q284047 Q464056 Q313270 Q48319 Q1288359 Q551643 Q2552694 Q3498875 Q273079 Q299271 Q9061 Q849 Q6577515 Q2975042 Q104109 Q16397 Q79031 Q150679 Q528428 Q177692 Q83359 Q2601617 Q6246943 Q163118 Q2402882 Q129429 Q5599 Q22686 Q5545355 Q2121085 Q212531 Q5294232 Q463653 Q958996 Q483512 Q123075 Q835175 Q229432 Q123071 Q229437 Q44272 Q94002 Q49285 Q27429917 Q1744 Q1523 Q367447 Q5582 Q219640 Q5822 Q28493 Q5589 Q296 Q527735 Q352954 Q2181776 Q27429984 Q34013 Q2836532 Q712497 Q221464 Q263241 Q550426 Q356129 Q3925 Q34851 Q25328 Q26806 Q203219 Q983441 Q2552902 Q41554 Q83338 Q205365 Q624868 Q1953018 Q983352 Q255815 Q3036807 Q3290501 Q189067 Q1086874 Q471023 Q5432 Q2412941 Q297816 Q1896700 Q156622 Q354832 Q3525855 Q159907 Q210447 Q2373032 Q1401 Q3719992 Q199369 Q2110873 Q192222 Q83155 Q2965760 Q193406 Q3385369 Q733965 Q2409128 Q1278282 Q5053466 Q233845 Q3429566 Q513644 Q3047181 Q237813 Q44122 Q576222 Q578878
(c(Q2342494)|c(Q2198855),P941,c(Q502895))
action atmost
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
value 1
[ANSWERS] were atmost 1 collectables or cultural movements inspired by
[[{'concept': 'Q2342494'}, {'concept': 'Q2198855'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?u ) WHERE { { ?b rdf:type ontology:Q502895 . ?x rdf:type ontology:Q2342494 . ?x property:P941 ?b } UNION { ?x property:P941 ?b . ?b rdf:type ontology:Q502895 . ?x rdf:type ontology:Q2198855 } } GROUP BY ?b } . FILTER ( ?u <= 1 ) }
Alexander McQueen Walter O'Brien Jean Auguste Dominique Ingres Sherri Stoner Joan Crawford Allan Kaprow Thomas Cole Mel Gibson Donna Atwood Maya Angelou Conrad Veidt John of England Richard I of England Buddy Hackett Jean-Baptiste-Siméon Chardin Allan Ramsay Paul Cézanne Charmaine Craig Dick Jones Natalie Wood Jean Harlow Joe Grant Auguste Rodin Paul Gauguin Bobby Driscoll Tate Donovan John Marin Elizabeth Kenny David Bowie Winston Churchill Eleanor Audley Jean-Honoré Fragonard Fred Moore Vlad Tepes Audrey Hepburn Elisabeth Scott Fiorello H. La Guardia Art Stevens Léopold Sédar Senghor Geoffrey Bowers Bo Gritz Al Hirschfeld Scott Weinger Girolamo Savonarola Gilles Deleuze John Smith George C. Scott Antoine Watteau Eddie Collins Marge Champion Terry-Thomas Robert Burns Michelangelo Adolf Hitler Joseph Sabu Dastagir René Magritte Antonello da Messina Balthasar Denner Jeffrey Stone Armand d'Athos Georges Manolescu Helen Gahagan Douglas Divine Louis Armstrong Fats Waller Andrea del Verrocchio Gustave Courbet Paul Signac Violet Gordon-Woodhouse Robert Gant Pierre Bourdieu Katharine Hepburn Kathryn Beaumont Gene Kelly Janet Gaynor Robert Gober Lionel Atwill Jeremy Irons Fred Astaire Sandro Botticelli Salvador Dalí Michael J. Fox Heather Angel Eric Larson Moses Ollie Johnston Charles Hubert Millevoye Frances Bavier Titian Mehran Karimi Nasseri Eugène Devéria Edgar Degas Andrés López Muñoz Spring Byington Tom Cruise Jennifer Connelly Christy Turlington Gala Dalí Jerome Kern Hans Holbein Félix González-Torres Jean Goujon Madge Blake Steve Carlson Cab Calloway Bahram V Karl Marx François Villon Samuel Claire Du Brey Mary Pickford Bruce Lee Mike Tyson Anthony van Dyck Douglas Fairbanks Jr Andrea Palladio James Dean Leonard Baskin John Martin Marguerite Yourcenar Helene Stanley Vivien Leigh Peter Paul Rubens Donald Trump George Turberville Walter Catlett Kate Moss Donald DeFreeze Marie-Thérèse Walter Irene Bedard Isadora Duncan Robert Walser Bernard Levin Lucretia Arnold Böcklin Donatella Versace Michel Foucault Barbara Stanwyck Sally Ride Michelle Stacy Madonna Ramesses II Louis Prima Vincent van Gogh Vincent Price Piero della Francesca Ralph Fiennes Henri Matisse Claude Monet Cedric Hardwicke Carel Fabritius Paul Collins John Culhane Georges Seurat Alice Ayres François Girardon Gilbert Gottfried Mary Wickes Jeffrey Katzenberg John Stamos Grace Kelly Elizabeth Taylor Antoni Gaudí Danny DeVito Boris Karloff Thomas Moran Hans Conried Nicolas Poussin Robin Williams Cain Charles Sheeler Pratibha Ray Il Pordenone Tallulah Bankhead Donnie Dunagan Margaret Kerry Alyssa Milano Christopher Newport Jimmy Durante Francisco de Goya The Fox and the Cat Sammy Davis, Jr. Marian Wright Edelman Giorgio de Chirico Pieter Claesz T. Hee David Hockney Mark Hamill Pierre Gringoire Petrarch Edward Maria Wingfield Naomi Campbell Natalie Venetia Belcon Lysippos Jacques-Louis David Christiane Faure Pocahontas Pierre Guillaume Jack Carlson Dušan Popov Eastman Johnson Cathy McGowan Gale Sondergaard Rhoda Williams Ray Ventura Ed Kemmer Maila Nurmi Django Reinhardt Floris van Dyck Chief Powhatan
Winston Churchill, Adolf Hitler and Madonna were atmost 1 collectables or cultural movements inspired by
Winston Churchill Adolf Hitler Madonna
action atmost
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type collectable
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
value 1
[[{'concept': 'collectable'}, {'concept': 'cultural movement'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?u ) WHERE { { ?b rdf:type ontology:common_name . ?x rdf:type ontology:collectable . ?x property:inspired_by ?b } UNION { ?x property:inspired_by ?b . ?b rdf:type ontology:common_name . ?x rdf:type ontology:cultural_movement } } GROUP BY ?b } . FILTER ( ?u <= 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P161
Q838948
USER
How many works of art stars that person as actor ?
(c(Q838948),P161,Q1744)
[{'concept': 'Q838948'}, 'P161', 'Q1744']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q3297652 resource:Q17335830 . ?z rdf:type ontology:Q838948 }
[{'concept': 'work of art'}, 'cast member', 'Madonna']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:cast_member resource:Madonna . ?z rdf:type ontology:work_of_art }
[]
work of art
Quantitative|Count|Single entity type|Clarification
Q8016
SYSTEM
Did you mean Winston Churchill ?
(c(Q838948),P161,Q8016) (c(Q838948),P161,Q352) (c(Q838948),P161,Q1744)
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q8016'] [{'concept': 'Q838948'}, 'P161', 'Q352'] [{'concept': 'Q838948'}, 'P161', 'Q1744']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q3297652 resource:Q17335830 . ?z rdf:type ontology:Q838948 }
Did you mean Winston Churchill ?
Winston Churchill
[{'concept': 'work of art'}, 'cast member', 'Winston Churchill'] [{'concept': 'work of art'}, 'cast member', 'Adolf Hitler'] [{'concept': 'work of art'}, 'cast member', 'Madonna']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:cast_member resource:Madonna . ?z rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Madonna. Could you tell me the answer for that?
(c(Q838948),P161,Q1744)
Q1744
[{'concept': 'Q838948'}, 'P161', 'Q1744']
[{'concept': 'work of art'}, 'cast member', 'Madonna']
[]
SYSTEM
22
Q1139277 Q2517431 Q2478977 Q2291842 Q1306472 Q2706157 Q600364 Q245271 Q550232 Q30931 Q1247216 Q17182905 Q2337429 Q1209853 Q1137372 Q1420421 Q3190085 Q910523 Q1077163 Q910943 Q1968798 Q187561
(c(Q838948),P161,Q1744)
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q1744']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q3297652 resource:Q17335830 . ?z rdf:type ontology:Q838948 }
Vision Quest Girl 6 Blue in the Face Who's That Girl A League of Their Own Bloodhounds of Broadway Swept Away Evita Arthur and the Minimoys Die Another Day The Next Best Thing Pixels Dangerous Game Dick Tracy Four Rooms Desperately Seeking Susan Junket Whore Shadows and Fog A Certain Sacrifice I'm Going to Tell You a Secret Shanghai Surprise Madonna: Truth or Dare
22
[{'concept': 'work of art'}, 'cast member', 'Madonna']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:cast_member resource:Madonna . ?z rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q386724
USER
How many works had atmost 13 people as the dubbing artist ?
(c(Q386724),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q386724
type Q502895
value 13
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?g ) WHERE { ?m property:P725 ?w . ?m rdf:type ontology:Q386724 . ?w rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?g <= 13 ) }
action count
action atmost
action find_tuple_counts
relation voice actor
type work
type common name
value 13
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?g ) WHERE { ?m property:voice_actor ?w . ?m rdf:type ontology:work . ?w rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?g <= 13 ) }
[]
common name work
SYSTEM
14
Q26987217 Q26701981 Q23752771 Q10864091 Q27627540 Q24175397 Q26390366 Q26715049 Q26299860 Q25858085 Q26457246 Q13516675 Q26829863 Q23894983
(c(Q386724),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q386724
type Q502895
value 13
[ANSWER]
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?g ) WHERE { ?m property:P725 ?w . ?m rdf:type ontology:Q386724 . ?w rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?g <= 13 ) }
Hércules y la visita de Zeus Hércules y el grifo Iron Man Isshūkan Friends Doctor Strange (Doctor Extraño) Capitán América: El primer vengador Hércules y el rey de Tesalia Peter y el dragón Hércules y el primer médico del mundo Alicia a través del espejo Hércules y el arma secreta Sakura Trick Angry Birds: La película Iron Man 2
14
action count
action atmost
action find_tuple_counts
relation voice actor
type work
type common name
value 13
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?g ) WHERE { ?m property:voice_actor ?w . ?m rdf:type ontology:work . ?w rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?g <= 13 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by max number of people ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?n ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?z ) WHERE { ?t property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } } . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?l = ?n ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?n ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?z ) WHERE { ?t property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?x } } . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?l = ?n ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWER] is played by max number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?n ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?z ) WHERE { ?t property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } } . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?l = ?n ) }
piano
Piano is played by max number of people
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?n ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?z ) WHERE { ?t property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?x } } . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?l = ?n ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do approximately 53 people know to play ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 53
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?y ) WHERE { ?p rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 . ?j property:P1303 ?p } GROUP BY ?p } . FILTER ( ?y = 53 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 53
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?y ) WHERE { ?p rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name . ?j property:instrument ?p } GROUP BY ?p } . FILTER ( ?y = 53 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 53
Approximately 53 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?y ) WHERE { ?p rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 . ?j property:P1303 ?p } GROUP BY ?p } . FILTER ( ?y = 53 ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Approximately 53 people know about davul, harpsichord and Wurlitzer electric piano
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 53
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?y ) WHERE { ?p rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name . ?j property:instrument ?p } GROUP BY ?p } . FILTER ( ?y = 53 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1744
P737
Q502895
USER
How many people acted as an inflence on Madonna ?
(Q1744,P737,c(Q502895))
action count
action filter_type
action find
entity Q1744
relation P737
type Q502895
['Q1744', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { resource:Q1744 property:P737 ?n . ?n rdf:type ontology:Q502895 }
Madonna
action count
action filter_type
action find
entity Madonna
relation influenced by
type common name
['Madonna', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { resource:Madonna property:influenced_by ?n . ?n rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q5383
(Q1744,P737,c(Q502895))
action count
action filter_type
action find
entity Q1744
relation P737
type Q502895
[ANSWER]
['Q1744', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { resource:Q1744 property:P737 ?n . ?n rdf:type ontology:Q502895 }
David Bowie
1
action count
action filter_type
action find
entity Madonna
relation influenced by
type common name
['Madonna', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { resource:Madonna property:influenced_by ?n . ?n rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q1060636
P737
Q502895
USER
And how about Daniel Handler?
(Q1060636,P737,c(Q502895))
action count
action filter_type
action find
entity Q1060636
relation P737
type Q502895
['Q1060636', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q1060636 property:P737 ?y . ?y rdf:type ontology:Q502895 }
Daniel Handler
action count
action filter_type
action find
entity Daniel Handler
relation influenced by
type common name
['Daniel Handler', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Daniel_Handler property:influenced_by ?y . ?y rdf:type ontology:common_name }
[]
common name
SYSTEM
5
Q242095 Q905 Q982401 Q16867 Q9204
(Q1060636,P737,c(Q502895))
action count
action filter_type
action find
entity Q1060636
relation P737
type Q502895
[ANSWER]
['Q1060636', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q1060636 property:P737 ?y . ?y rdf:type ontology:Q502895 }
Dino Buzzati Franz Kafka Edward Gorey Edgar Allan Poe C. S. Lewis
5
action count
action filter_type
action find
entity Daniel Handler
relation influenced by
type common name
['Daniel Handler', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Daniel_Handler property:influenced_by ?y . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q105756
Q502895
USER
And what about John Updike?
(Q105756,P737,c(Q502895))
action count
action filter_type
action find
entity Q105756
relation P737
type Q502895
['Q105756', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Q105756 property:P737 ?w . ?w rdf:type ontology:Q502895 }
John Updike
action count
action filter_type
action find
entity John Updike
relation influenced by
type common name
['John Updike', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:John_Updike property:influenced_by ?w . ?w rdf:type ontology:common_name }
[]
common name
SYSTEM
22
(Q105756,P737,c(Q502895))
action count
action filter_type
action find
entity Q105756
relation P737
type Q502895
[ANSWER]
['Q105756', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Q105756 property:P737 ?w . ?w rdf:type ontology:Q502895 }
22
action count
action filter_type
action find
entity John Updike
relation influenced by
type common name
['John Updike', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:John_Updike property:influenced_by ?w . ?w rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q46185
P870
Q34379 Q207628 Q9748
USER
Which musical instruments are used as instrumentation in around the same number of musical compositions or concertoes as bass guitar ?
(c(Q207628)|c(Q9748),P870,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action count
action filter_multi_types
action find_reverse
entity Q46185
relation P870
type Q207628
type Q9748
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?q ) WHERE { { ?y rdf:type ontology:Q34379 . ?g rdf:type ontology:Q207628 . ?g property:P870 ?y } UNION { ?g property:P870 ?y . ?y rdf:type ontology:Q34379 . ?g rdf:type ontology:Q9748 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:Q9748 ) ( ontology:Q207628 ) } } . ?a property:P870 resource:Q46185 } } . FILTER ( ?q = ?n ) }
bass guitar
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action count
action filter_multi_types
action find_reverse
entity bass guitar
relation instrumentation
type musical composition
type concerto
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?q ) WHERE { { ?y rdf:type ontology:musical_instrument . ?g rdf:type ontology:musical_composition . ?g property:instrumentation ?y } UNION { ?g property:instrumentation ?y . ?y rdf:type ontology:musical_instrument . ?g rdf:type ontology:concerto } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:concerto ) ( ontology:musical_composition ) } } . ?a property:instrumentation resource:bass_guitar } } . FILTER ( ?q = ?n ) }
[]
musical instrument musical composition concerto
Q521151 Q81982 Q80284
SYSTEM
baryton, harpsichord, viola
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q1444 Q39777 Q11404 Q206987 Q81982
(c(Q207628)|c(Q9748),P870,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action count
action filter_multi_types
action find_reverse
entity Q46185
relation P870
type Q207628
type Q9748
[ANSWERS] are used as instrumentation in around the same number of musical compositions or concertoes as bass guitar
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?q ) WHERE { { ?y rdf:type ontology:Q34379 . ?g rdf:type ontology:Q207628 . ?g property:P870 ?y } UNION { ?g property:P870 ?y . ?y rdf:type ontology:Q34379 . ?g rdf:type ontology:Q9748 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:Q9748 ) ( ontology:Q207628 ) } } . ?a property:P870 resource:Q46185 } } . FILTER ( ?q = ?n ) }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta organ maraca drum vibraphone harpsichord
Baryton, harpsichord and viola are used as instrumentation in around the same number of musical compositions or concertoes as bass guitar
baryton harpsichord viola
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action count
action filter_multi_types
action find_reverse
entity bass guitar
relation instrumentation
type musical composition
type concerto
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?q ) WHERE { { ?y rdf:type ontology:musical_instrument . ?g rdf:type ontology:musical_composition . ?g property:instrumentation ?y } UNION { ?g property:instrumentation ?y . ?y rdf:type ontology:musical_instrument . ?g rdf:type ontology:concerto } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:concerto ) ( ontology:musical_composition ) } } . ?a property:instrumentation resource:bass_guitar } } . FILTER ( ?q = ?n ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q80284
P425
Q12737077
USER
Which occupation does that musical instrument belong to ?
(c(Q12737077),P425,Q80284)
action filter_type
action find_reverse
entity Q80284
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q80284']
SELECT DISTINCT ?u WHERE { ?u property:P425 resource:Q80284 . ?u rdf:type ontology:Q12737077 }
viola
action filter_type
action find_reverse
entity viola
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'viola']
SELECT DISTINCT ?u WHERE { ?u property:field_of_this_occupation resource:viola . ?u rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q81982
SYSTEM
Did you mean harpsichord ?
Q521151 Q81982 Q80284
(c(Q12737077),P425,Q521151) (c(Q12737077),P425,Q81982) (c(Q12737077),P425,Q80284)
[ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q521151'] [{'concept': 'Q12737077'}, 'P425', 'Q81982'] [{'concept': 'Q12737077'}, 'P425', 'Q80284']
SELECT DISTINCT ?u WHERE { ?u property:P425 resource:Q80284 . ?u rdf:type ontology:Q12737077 }
baryton harpsichord viola
Did you mean harpsichord ?
harpsichord
[{'concept': 'occupation'}, 'field of this occupation', 'baryton'] [{'concept': 'occupation'}, 'field of this occupation', 'harpsichord'] [{'concept': 'occupation'}, 'field of this occupation', 'viola']
SELECT DISTINCT ?u WHERE { ?u property:field_of_this_occupation resource:viola . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant viola. Could you tell me the answer for that?
(c(Q12737077),P425,Q80284)
Q80284
[{'concept': 'Q12737077'}, 'P425', 'Q80284']
[{'concept': 'occupation'}, 'field of this occupation', 'viola']
[]
Q899758
SYSTEM
violist
Q899758
(c(Q12737077),P425,Q80284)
action filter_type
action find_reverse
entity Q80284
relation P425
type Q12737077
That musical instrument belongs to the [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q80284']
SELECT DISTINCT ?u WHERE { ?u property:P425 resource:Q80284 . ?u rdf:type ontology:Q12737077 }
violist
That musical instrument belongs to the violist
violist
action filter_type
action find_reverse
entity viola
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'viola']
SELECT DISTINCT ?u WHERE { ?u property:field_of_this_occupation resource:viola . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1744
P175
Q2031291
USER
Which releases presented Madonna ?
(c(Q2031291),P175,Q1744)
action filter_type
action find_reverse
entity Q1744
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q1744']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q2031291 . ?i property:P175 resource:Q1744 }
Madonna
action filter_type
action find_reverse
entity Madonna
relation performer
type release
[{'concept': 'release'}, 'performer', 'Madonna']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:release . ?i property:performer resource:Madonna }
[]
release
Q235340 Q746862 Q483778
SYSTEM
MDNA, Give Me All Your Luvin', Hard Candy
Q1909419 Q1817809 Q1764320 Q746862 Q1646862 Q1987158 Q1509118 Q2291771 Q580550 Q1576306 Q264286 Q1070284 Q2034649 Q3985868 Q595370 Q584740 Q2085975 Q2292939 Q2007727 Q1137622 Q1415550 Q685457 Q1635691 Q1193897 Q1342432 Q478324 Q2265103 Q654228 Q3282456 Q429886 Q1414733 Q2423183 Q582091 Q1509040 Q391206 Q1460837 Q7757748 Q2288909 Q893426 Q1164805 Q2000957 Q1458640 Q2083640 Q1123818 Q624893 Q1999503 Q1340989 Q611419 Q746450 Q235340 Q1921394 Q779710 Q2292256 Q2167764 Q483778 Q1181198 Q1342443 Q746665 Q1018488 Q478311 Q1139281 Q2288916 Q2069044 Q1920231 Q2263965 Q1858558 Q930479 Q370753 Q1280732 Q764769 Q837719
(c(Q2031291),P175,Q1744)
action filter_type
action find_reverse
entity Q1744
relation P175
type Q2031291
MDNA, give Me All Your Luvin' and Hard Candy presented Madonna
[{'concept': 'Q2031291'}, 'P175', 'Q1744']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q2031291 . ?i property:P175 resource:Q1744 }
The Look of Love The Confessions Tour: Live from London Celebration Give Me All Your Luvin' Sorry Don't Tell Me Who's That Girl Bedtime Story Get Together Rescue Me Girl Gone Wild Cherish Burning Up The Best Of Open Your Heart This Used to Be My Playground Keep It Together Hollywood Pre-Madonna Papa Don't Preach Oh Father 4 Minutes Give It 2 Me You'll See Live to Tell Erotica What It Feels Like for a Girl Material Girl Istanbul Dress You Up Justify My Love One More Chance Express Yourself True Blue American Life Gambler The Poor People of Paris Beautiful Stranger Borderline Lucky Star Turn Up the Radio Into the Groove Nothing Really Matters Evita Miles Away Nothing Fails Holiday Die Another Day I'm Breathless MDNA American Life The Power of Good-Bye I'll Remember Another Suitcase in Another Hall Hard Candy Dear Jessie Hanky Panky Jump Bye Bye Baby Bedtime Stories Crazy for You Causing a Commotion Drowned World/Substitute for Love Everybody Take a Bow You Must Love Me Love Profusion Deeper and Deeper Human Nature Ray of Light Me Against the Music
MDNA, give Me All Your Luvin' and Hard Candy presented Madonna
MDNA Give Me All Your Luvin' Hard Candy
action filter_type
action find_reverse
entity Madonna
relation performer
type release
[{'concept': 'release'}, 'performer', 'Madonna']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:release . ?i property:performer resource:Madonna }
[]