Simple Question (Direct)
Simple Question
Q7172767
P20
Q56061
USER
Where did Peter Benjamin Graham die ?
(Q7172767,P20,c(Q56061))
action filter_type
action find
entity Q7172767
relation P20
type Q56061
['Q7172767', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q7172767 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Peter Benjamin Graham
action filter_type
action find
entity Peter Benjamin Graham
relation place of death
type administrative territorial entity
['Peter Benjamin Graham', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Peter_Benjamin_Graham property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3141
SYSTEM
Melbourne
Q3141
(Q7172767,P20,c(Q56061))
action filter_type
action find
entity Q7172767
relation P20
type Q56061
Peter Benjamin Graham died in [ANSWER]
['Q7172767', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q7172767 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Melbourne
Peter Benjamin Graham died in Melbourne
Melbourne
action filter_type
action find
entity Peter Benjamin Graham
relation place of death
type administrative territorial entity
['Peter Benjamin Graham', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Peter_Benjamin_Graham property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3141
P138
Q502895
USER
Which person is the etymology of that administrative territory ?
(Q3141,P138,c(Q502895))
action filter_type
action find
entity Q3141
relation P138
type Q502895
['Q3141', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q3141 property:P138 ?y . ?y rdf:type ontology:Q502895 }
Melbourne
action filter_type
action find
entity Melbourne
relation named after
type common name
['Melbourne', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Melbourne property:named_after ?y . ?y rdf:type ontology:common_name }
[]
common name
Q312567
SYSTEM
William Lamb, 2nd Viscount Melbourne
Q312567
(Q3141,P138,c(Q502895))
action filter_type
action find
entity Q3141
relation P138
type Q502895
[ANSWER] is the etymology of that administrative territory
['Q3141', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q3141 property:P138 ?y . ?y rdf:type ontology:Q502895 }
William Lamb, 2nd Viscount Melbourne
William Lamb, 2nd Viscount Melbourne is the etymology of that administrative territory
William Lamb, 2nd Viscount Melbourne
action filter_type
action find
entity Melbourne
relation named after
type common name
['Melbourne', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Melbourne property:named_after ?y . ?y rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q312567 Q26699735
P39
Q12737077
USER
Was mayor of El Pozuelo the position held by that person ?
(Q312567,P39,Q26699735)
action is_in
entity Q26699735
action find
entity Q312567
relation P39
['Q312567', 'P39', 'Q26699735']
ASK WHERE { resource:Q312567 property:P39 resource:Q26699735 }
William Lamb, 2nd Viscount Melbourne mayor of El Pozuelo
action is_in
entity mayor of El Pozuelo
action find
entity William Lamb, 2nd Viscount Melbourne
relation position held
['William Lamb, 2nd Viscount Melbourne', 'position held', 'mayor of El Pozuelo']
ASK WHERE { resource:William_Lamb,_2nd_Viscount_Melbourne property:position_held resource:mayor_of_El_Pozuelo }
[]
occupation
SYSTEM
NO
(Q312567,P39,Q26699735)
action is_in
entity Q26699735
action find
entity Q312567
relation P39
[ANSWER]
['Q312567', 'P39', 'Q26699735']
ASK WHERE { resource:Q312567 property:P39 resource:Q26699735 }
No
action is_in
entity mayor of El Pozuelo
action find
entity William Lamb, 2nd Viscount Melbourne
relation position held
['William Lamb, 2nd Viscount Melbourne', 'position held', 'mayor of El Pozuelo']
ASK WHERE { resource:William_Lamb,_2nd_Viscount_Melbourne property:position_held resource:mayor_of_El_Pozuelo }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q312567
P69
Q41176 Q3914
USER
How many buildings and schools are the alma mater of William Lamb, 2nd Viscount Melbourne ?
(Q312567,P69,c(Q41176)) (Q312567,P69,c(Q3914))
action count
action union
action filter_type
action find
entity Q312567
relation P69
type Q41176
action filter_type
action find
entity Q312567
relation P69
type Q3914
['Q312567', 'P69', {'concept': 'Q41176'}] ['Q312567', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { VALUES ( ?q ) { ( ontology:Q41176 ) ( ontology:Q3914 ) } . ?x rdf:type ?q }
William Lamb, 2nd Viscount Melbourne
action count
action union
action filter_type
action find
entity William Lamb, 2nd Viscount Melbourne
relation educated at
type building
action filter_type
action find
entity William Lamb, 2nd Viscount Melbourne
relation educated at
type school
['William Lamb, 2nd Viscount Melbourne', 'educated at', {'concept': 'building'}] ['William Lamb, 2nd Viscount Melbourne', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { VALUES ( ?q ) { ( ontology:building ) ( ontology:school ) } . ?x rdf:type ?q }
[]
building school
SYSTEM
1 buildings and 1 schools
Q192088 Q332342
(Q312567,P69,c(Q41176)) (Q312567,P69,c(Q3914))
action count
action union
action filter_type
action find
entity Q312567
relation P69
type Q41176
action filter_type
action find
entity Q312567
relation P69
type Q3914
[ANSWER]
['Q312567', 'P69', {'concept': 'Q41176'}] ['Q312567', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { VALUES ( ?q ) { ( ontology:Q41176 ) ( ontology:Q3914 ) } . ?x rdf:type ?q }
Eton College Trinity College, Cambridge
1 buildings and 1 schools
action count
action union
action filter_type
action find
entity William Lamb, 2nd Viscount Melbourne
relation educated at
type building
action filter_type
action find
entity William Lamb, 2nd Viscount Melbourne
relation educated at
type school
['William Lamb, 2nd Viscount Melbourne', 'educated at', {'concept': 'building'}] ['William Lamb, 2nd Viscount Melbourne', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { VALUES ( ?q ) { ( ontology:building ) ( ontology:school ) } . ?x rdf:type ?q }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q608806
P144
Q502895 Q6619679 Q11424
USER
How many people do greater number of fictional humanoids or films extend upon than Yumiko Kawahara ?
(c(Q6619679)|c(Q11424),P144,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q6619679
action find_reverse_tuple_counts
relation P144
type Q502895
type Q11424
action count
action filter_multi_types
action find_reverse
entity Q608806
relation P144
type Q6619679
type Q11424
[[{'concept': 'Q6619679'}, {'concept': 'Q11424'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?p WHERE { ?a rdf:type ?c . VALUES ( ?c ) { ( ontology:Q6619679 ) ( ontology:Q11424 ) } } GROUP BY ?p } . FILTER ( ?f > ?o ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P144 resource:Q608806 . { { ?d rdf:type ontology:Q6619679 } UNION { ?d rdf:type ontology:Q11424 } } } } }
Yumiko Kawahara
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type common name
type fictional humanoid
action find_reverse_tuple_counts
relation based on
type common name
type film
action count
action filter_multi_types
action find_reverse
entity Yumiko Kawahara
relation based on
type fictional humanoid
type film
[[{'concept': 'fictional humanoid'}, {'concept': 'film'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?p WHERE { ?a rdf:type ?c . VALUES ( ?c ) { ( ontology:fictional_humanoid ) ( ontology:film ) } } GROUP BY ?p } . FILTER ( ?f > ?o ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:based_on resource:Yumiko_Kawahara . { { ?d rdf:type ontology:fictional_humanoid } UNION { ?d rdf:type ontology:film } } } } }
[]
common name fictional humanoid film
SYSTEM
49
Q696052 Q1964376 Q937 Q6851849 Q6968888 Q294931 Q222831 Q717294 Q907550 Q313866 Q296313 Q6389787 Q60029 Q312692 Q232913 Q5264 Q157040 Q378053 Q808209 Q7341746 Q269812 Q467646 Q557360 Q197359 Q189081 Q4532024 Q6814106 Q5296634 Q297743 Q57652 Q110714 Q3083638 Q306914 Q3079968 Q51505 Q4884844 Q23722455 Q6691 Q7106226 Q1441684 Q106255 Q311966 Q1048 Q315607 Q8011009 Q150471 Q161154 Q4963602 Q40096
(c(Q6619679)|c(Q11424),P144,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q6619679
action find_reverse_tuple_counts
relation P144
type Q502895
type Q11424
action count
action filter_multi_types
action find_reverse
entity Q608806
relation P144
type Q6619679
type Q11424
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q11424'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?p WHERE { ?a rdf:type ?c . VALUES ( ?c ) { ( ontology:Q6619679 ) ( ontology:Q11424 ) } } GROUP BY ?p } . FILTER ( ?f > ?o ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P144 resource:Q608806 . { { ?d rdf:type ontology:Q6619679 } UNION { ?d rdf:type ontology:Q11424 } } } } }
Arnold Rothstein Anthony Poshepny Albert Einstein Milicent Bagot Nathan Barksdale William Randolph Hearst Ilich Ramírez Sánchez Krystyna Skarbek Eugène Turpin William Adams Kim Philby Kenneth A. Jackson Oskar Schindler Bud Powell Beatrice Portinari Hippocrates Lajos Kossuth Rob Roy MacGregor Barisan of Ibelin Robert B. Rheault Christina Nilsson Jane Franklin Ármin Vámbéry Empress Zhang Howard Hughes Beulah Annan Melvin Williams Donnie Andrews Lillie Langtry Helle Thorning-Schmidt Lester Young François-René Crespin du Bec Abbé Faria Ted Key Jean Baptiste Antoine Marcellin de Marbot Belva Gaertner Andrei Homer Oscar Requer Francis Paudras Jean-Paul Belmondo Roger Casement Julius Caesar David Farragut William Hatfield E. T. A. Hoffmann Lola Montez Brian Dowling Will Smith
49
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type common name
type fictional humanoid
action find_reverse_tuple_counts
relation based on
type common name
type film
action count
action filter_multi_types
action find_reverse
entity Yumiko Kawahara
relation based on
type fictional humanoid
type film
[[{'concept': 'fictional humanoid'}, {'concept': 'film'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?p WHERE { ?a rdf:type ?c . VALUES ( ?c ) { ( ontology:fictional_humanoid ) ( ontology:film ) } } GROUP BY ?p } . FILTER ( ?f > ?o ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:based_on resource:Yumiko_Kawahara . { { ?d rdf:type ontology:fictional_humanoid } UNION { ?d rdf:type ontology:film } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q7177457
P144
Q502895 Q6619679 Q11424
USER
And also tell me about Peter Van Greenaway?
(c(Q6619679)|c(Q11424),P144,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q6619679
action find_reverse_tuple_counts
relation P144
type Q502895
type Q11424
action count
action filter_multi_types
action find_reverse
entity Q7177457
relation P144
type Q6619679
type Q11424
[[{'concept': 'Q6619679'}, {'concept': 'Q11424'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) ?o WHERE { VALUES ( ?u ) { ( ontology:Q6619679 ) ( ontology:Q11424 ) } . ?z rdf:type ?u } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:P144 resource:Q7177457 . { { ?f rdf:type ontology:Q11424 } UNION { ?f rdf:type ontology:Q6619679 } } } } . FILTER ( ?m > ?w ) }
Peter Van Greenaway
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type common name
type fictional humanoid
action find_reverse_tuple_counts
relation based on
type common name
type film
action count
action filter_multi_types
action find_reverse
entity Peter Van Greenaway
relation based on
type fictional humanoid
type film
[[{'concept': 'fictional humanoid'}, {'concept': 'film'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) ?o WHERE { VALUES ( ?u ) { ( ontology:fictional_humanoid ) ( ontology:film ) } . ?z rdf:type ?u } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:based_on resource:Peter_Van_Greenaway . { { ?f rdf:type ontology:film } UNION { ?f rdf:type ontology:fictional_humanoid } } } } . FILTER ( ?m > ?w ) }
[]
common name fictional humanoid film
SYSTEM
49
Q696052 Q1964376 Q937 Q6851849 Q6968888 Q294931 Q222831 Q717294 Q907550 Q313866 Q296313 Q6389787 Q60029 Q312692 Q232913 Q5264 Q157040 Q378053 Q808209 Q7341746 Q269812 Q467646 Q557360 Q197359 Q189081 Q4532024 Q6814106 Q5296634 Q297743 Q57652 Q110714 Q3083638 Q306914 Q3079968 Q51505 Q4884844 Q23722455 Q6691 Q7106226 Q1441684 Q106255 Q311966 Q1048 Q315607 Q8011009 Q150471 Q161154 Q4963602 Q40096
(c(Q6619679)|c(Q11424),P144,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q6619679
action find_reverse_tuple_counts
relation P144
type Q502895
type Q11424
action count
action filter_multi_types
action find_reverse
entity Q7177457
relation P144
type Q6619679
type Q11424
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q11424'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) ?o WHERE { VALUES ( ?u ) { ( ontology:Q6619679 ) ( ontology:Q11424 ) } . ?z rdf:type ?u } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:P144 resource:Q7177457 . { { ?f rdf:type ontology:Q11424 } UNION { ?f rdf:type ontology:Q6619679 } } } } . FILTER ( ?m > ?w ) }
Arnold Rothstein Anthony Poshepny Albert Einstein Milicent Bagot Nathan Barksdale William Randolph Hearst Ilich Ramírez Sánchez Krystyna Skarbek Eugène Turpin William Adams Kim Philby Kenneth A. Jackson Oskar Schindler Bud Powell Beatrice Portinari Hippocrates Lajos Kossuth Rob Roy MacGregor Barisan of Ibelin Robert B. Rheault Christina Nilsson Jane Franklin Ármin Vámbéry Empress Zhang Howard Hughes Beulah Annan Melvin Williams Donnie Andrews Lillie Langtry Helle Thorning-Schmidt Lester Young François-René Crespin du Bec Abbé Faria Ted Key Jean Baptiste Antoine Marcellin de Marbot Belva Gaertner Andrei Homer Oscar Requer Francis Paudras Jean-Paul Belmondo Roger Casement Julius Caesar David Farragut William Hatfield E. T. A. Hoffmann Lola Montez Brian Dowling Will Smith
49
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type common name
type fictional humanoid
action find_reverse_tuple_counts
relation based on
type common name
type film
action count
action filter_multi_types
action find_reverse
entity Peter Van Greenaway
relation based on
type fictional humanoid
type film
[[{'concept': 'fictional humanoid'}, {'concept': 'film'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) ?o WHERE { VALUES ( ?u ) { ( ontology:fictional_humanoid ) ( ontology:film ) } . ?z rdf:type ?u } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:based_on resource:Peter_Van_Greenaway . { { ?f rdf:type ontology:film } UNION { ?f rdf:type ontology:fictional_humanoid } } } } . FILTER ( ?m > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q244976
P1303
Q34379 Q502895
USER
Which musical instruments are played by more number of people than bodhrán ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q244976
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?s ) WHERE { ?u rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 . ?n property:P1303 ?u } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Q244976 property:P1303 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?s > ?j ) }
bodhrán
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bodhrán
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?s ) WHERE { ?u rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name . ?n property:instrument ?u } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:bodhrán property:instrument ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?s > ?j ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q244976
relation P1303
type Q34379
[ANSWERS] are played by more number of people than bodhrán
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?s ) WHERE { ?u rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 . ?n property:P1303 ?u } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Q244976 property:P1303 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?s > ?j ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
Piano, harpsichord and ondes Martenot are played by more number of people than bodhrán
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bodhrán
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?s ) WHERE { ?u rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name . ?n property:instrument ?u } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:bodhrán property:instrument ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?s > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q46185
P1303
Q34379 Q502895
USER
And how about bass guitar?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q46185
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { resource:Q46185 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?k > ?h ) }
bass guitar
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bass guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { resource:bass_guitar property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?k > ?h ) }
[]
musical instrument common name
Q5994 Q8338 Q8355
SYSTEM
piano, trumpet, violin
Q5994 Q8338 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q46185
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { resource:Q46185 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?k > ?h ) }
piano trumpet violin organ drum kit
piano trumpet violin
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bass guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { resource:bass_guitar property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?k > ?h ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q14806243
P1303
Q502895
USER
Does Jan Hrdý know to play those musical instruments ?
(Q14806243,P1303,Q5994) (Q14806243,P1303,Q8338) (Q14806243,P1303,Q8355)
action is_in
entity prev_answer
action find
entity Q14806243
relation P1303
['Q14806243', 'P1303', 'Q5994'] ['Q14806243', 'P1303', 'Q8338'] ['Q14806243', 'P1303', 'Q8355']
ASK WHERE { resource:Q14806243 property:P1303 ?t . VALUES ( ?t ) { ( resource:Q5994 ) ( resource:Q8338 ) ( resource:Q8355 ) } }
Jan Hrdý
action is_in
entity prev_answer
action find
entity Jan Hrdý
relation instrument
['Jan Hrdý', 'instrument', 'piano'] ['Jan Hrdý', 'instrument', 'trumpet'] ['Jan Hrdý', 'instrument', 'violin']
ASK WHERE { resource:Jan_Hrdý property:instrument ?t . VALUES ( ?t ) { ( resource:piano ) ( resource:trumpet ) ( resource:violin ) } }
[]
common name
SYSTEM
NO
(Q14806243,P1303,Q5994) (Q14806243,P1303,Q8338) (Q14806243,P1303,Q8355)
action is_in
entity prev_answer
action find
entity Q14806243
relation P1303
[ANSWER]
['Q14806243', 'P1303', 'Q5994'] ['Q14806243', 'P1303', 'Q8338'] ['Q14806243', 'P1303', 'Q8355']
ASK WHERE { resource:Q14806243 property:P1303 ?t . VALUES ( ?t ) { ( resource:Q5994 ) ( resource:Q8338 ) ( resource:Q8355 ) } }
No
action is_in
entity prev_answer
action find
entity Jan Hrdý
relation instrument
['Jan Hrdý', 'instrument', 'piano'] ['Jan Hrdý', 'instrument', 'trumpet'] ['Jan Hrdý', 'instrument', 'violin']
ASK WHERE { resource:Jan_Hrdý property:instrument ?t . VALUES ( ?t ) { ( resource:piano ) ( resource:trumpet ) ( resource:violin ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q862501
P425
Q12737077
USER
What is the occupation that ondes Martenot belongs to ?
(c(Q12737077),P425,Q862501)
action filter_type
action find_reverse
entity Q862501
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q862501']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . ?f property:P425 resource:Q862501 }
ondes Martenot
action filter_type
action find_reverse
entity ondes Martenot
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'ondes Martenot']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . ?f property:field_of_this_occupation resource:ondes_Martenot }
[]
occupation
Q20198734
SYSTEM
ondist
Q20198734
(c(Q12737077),P425,Q862501)
action filter_type
action find_reverse
entity Q862501
relation P425
type Q12737077
The occupation that ondes Martenot belongs to is the [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q862501']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . ?f property:P425 resource:Q862501 }
ondist
The occupation that ondes Martenot belongs to is the ondist
ondist
action filter_type
action find_reverse
entity ondes Martenot
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'ondes Martenot']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . ?f property:field_of_this_occupation resource:ondes_Martenot }
[]