Simple Question (Direct)
Simple Question
Q6902775
P161
Q502895
USER
Who starred in Monster Mash ?
(Q6902775,P161,c(Q502895))
action filter_type
action find
entity Q6902775
relation P161
type Q502895
['Q6902775', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q6902775 property:P161 ?b . ?b rdf:type ontology:Q502895 }
Monster Mash
action filter_type
action find
entity Monster Mash
relation cast member
type common name
['Monster Mash', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Monster_Mash property:cast_member ?b . ?b rdf:type ontology:common_name }
[]
common name
Q715842 Q235694 Q350903
SYSTEM
Bobby Pickett, Candace Cameron Bure, Adam Shankman
Q5262912 Q235694 Q458305 Q4772333 Q350903 Q2506373 Q3147237 Q1582689 Q1290449 Q20819820 Q715842
(Q6902775,P161,c(Q502895))
action filter_type
action find
entity Q6902775
relation P161
type Q502895
[ANSWERS] starred in Monster Mash
['Q6902775', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q6902775 property:P161 ?b . ?b rdf:type ontology:Q502895 }
Deron McBee Candace Cameron Bure Sarah Douglas Anthony Crivello Adam Shankman Mink Stole Ian Bohen John Kassir Jimmie Walker E. Aron Price Bobby Pickett
Bobby Pickett, Candace Cameron Bure and Adam Shankman starred in Monster Mash
Bobby Pickett Candace Cameron Bure Adam Shankman
action filter_type
action find
entity Monster Mash
relation cast member
type common name
['Monster Mash', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Monster_Mash property:cast_member ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6902775
P57
Q502895
USER
Who directed that work of art ?
(Q715842,P57,c(Q502895)) (Q235694,P57,c(Q502895)) (Q350903,P57,c(Q502895))
action filter_type
action find
entity Q6902775
relation P57
type Q502895
['Q715842', 'P57', {'concept': 'Q502895'}] ['Q235694', 'P57', {'concept': 'Q502895'}] ['Q350903', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q6902775 property:P57 ?b . ?b rdf:type ontology:Q502895 }
Monster Mash
action filter_type
action find
entity Monster Mash
relation director
type common name
['Bobby Pickett', 'director', {'concept': 'common name'}] ['Candace Cameron Bure', 'director', {'concept': 'common name'}] ['Adam Shankman', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Monster_Mash property:director ?b . ?b rdf:type ontology:common_name }
[]
common name
Q3397612 Q3609030
SYSTEM
Joel Cohen, Alec Sokolow
Q3397612 Q3609030
(Q715842,P57,c(Q502895)) (Q235694,P57,c(Q502895)) (Q350903,P57,c(Q502895))
action filter_type
action find
entity Q6902775
relation P57
type Q502895
[ANSWERS] directed that work of art
['Q715842', 'P57', {'concept': 'Q502895'}] ['Q235694', 'P57', {'concept': 'Q502895'}] ['Q350903', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q6902775 property:P57 ?b . ?b rdf:type ontology:Q502895 }
Joel Cohen Alec Sokolow
Joel Cohen and Alec Sokolow directed that work of art
Joel Cohen Alec Sokolow
action filter_type
action find
entity Monster Mash
relation director
type common name
['Bobby Pickett', 'director', {'concept': 'common name'}] ['Candace Cameron Bure', 'director', {'concept': 'common name'}] ['Adam Shankman', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Monster_Mash property:director ?b . ?b rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q39777
P1303
Q34379 Q502895
USER
Which musical instruments are played by less number of people than maraca ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q39777
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:P1303 resource:Q39777 . ?m rdf:type ontology:Q502895 } } . FILTER ( ?f < ?x ) }
maraca
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity maraca
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:instrument resource:maraca . ?m rdf:type ontology:common_name } } . FILTER ( ?f < ?x ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q39777
relation P1303
type Q502895
[ANSWERS] are played by less number of people than maraca
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:P1303 resource:Q39777 . ?m rdf:type ontology:Q502895 } } . FILTER ( ?f < ?x ) }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by less number of people than maraca
spoon cajón wind instrument
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity maraca
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:instrument resource:maraca . ?m rdf:type ontology:common_name } } . FILTER ( ?f < ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1300012
P1303
Q34379 Q502895
USER
And what about toy piano?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1300012
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:P1303 ?p . ?y rdf:type ontology:Q502895 . ?p rdf:type ontology:Q34379 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { ?q rdf:type ontology:Q502895 . ?q property:P1303 resource:Q1300012 } } . FILTER ( ?x < ?l ) }
toy piano
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity toy piano
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:instrument ?p . ?y rdf:type ontology:common_name . ?p rdf:type ontology:musical_instrument } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { ?q rdf:type ontology:common_name . ?q property:instrument resource:toy_piano } } . FILTER ( ?x < ?l ) }
[]
musical instrument common name
Q1178361 Q1759986 Q816793
SYSTEM
davul, Wurlitzer electric piano, Bendir
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q748455 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q173453 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1300012
relation P1303
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:P1303 ?p . ?y rdf:type ontology:Q502895 . ?p rdf:type ontology:Q34379 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { ?q rdf:type ontology:Q502895 . ?q property:P1303 resource:Q1300012 } } . FILTER ( ?x < ?l ) }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument spoon Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta cajón gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales wind instrument Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
davul Wurlitzer electric piano Bendir
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity toy piano
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:instrument ?p . ?y rdf:type ontology:common_name . ?p rdf:type ontology:musical_instrument } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { ?q rdf:type ontology:common_name . ?q property:instrument resource:toy_piano } } . FILTER ( ?x < ?l ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P495
Q15617994
USER
How many administrative territories are the countries of origin of that musical instrument ?
(Q1178361,P495,c(Q15617994))
['Q1178361', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1178361 property:P495 ?z . ?z rdf:type ontology:Q15617994 }
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:davul property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q1178361
SYSTEM
Did you mean davul ?
(Q1178361,P495,c(Q15617994)) (Q1759986,P495,c(Q15617994)) (Q816793,P495,c(Q15617994))
[ANSWER]
['Q1178361', 'P495', {'concept': 'Q15617994'}] ['Q1759986', 'P495', {'concept': 'Q15617994'}] ['Q816793', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1178361 property:P495 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean davul ?
davul
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Wurlitzer electric piano', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Bendir', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:davul property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1178361,P495,c(Q15617994))
['Q1178361', 'P495', {'concept': 'Q15617994'}]
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q43
(Q1178361,P495,c(Q15617994))
[ANSWER]
['Q1178361', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1178361 property:P495 ?z . ?z rdf:type ontology:Q15617994 }
Turkey
1
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:davul property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q715842 Q7142713
P175
Q2031291
USER
How many releases presented Bobby Pickett or Passion Conferences ?
(c(Q2031291),P175,Q715842) (c(Q2031291),P175,Q7142713)
action count
action union
action filter_type
action find_reverse
entity Q715842
relation P175
type Q2031291
action filter_type
action find_reverse
entity Q7142713
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q715842'] [{'concept': 'Q2031291'}, 'P175', 'Q7142713']
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { ?l rdf:type ontology:Q2031291 . ?l property:P175 resource:Q7142713 } UNION { ?l property:P175 resource:Q715842 . ?l rdf:type ontology:Q2031291 } }
Bobby Pickett Passion Conferences
action count
action union
action filter_type
action find_reverse
entity Bobby Pickett
relation performer
type release
action filter_type
action find_reverse
entity Passion Conferences
relation performer
type release
[{'concept': 'release'}, 'performer', 'Bobby Pickett'] [{'concept': 'release'}, 'performer', 'Passion Conferences']
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { ?l rdf:type ontology:release . ?l property:performer resource:Passion_Conferences } UNION { ?l property:performer resource:Bobby_Pickett . ?l rdf:type ontology:release } }
[]
release
SYSTEM
5
Q5417979 Q3861012 Q7397310 Q5917722 Q7142691
(c(Q2031291),P175,Q715842) (c(Q2031291),P175,Q7142713)
action count
action union
action filter_type
action find_reverse
entity Q715842
relation P175
type Q2031291
action filter_type
action find_reverse
entity Q7142713
relation P175
type Q2031291
[ANSWER]
[{'concept': 'Q2031291'}, 'P175', 'Q715842'] [{'concept': 'Q2031291'}, 'P175', 'Q7142713']
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { ?l rdf:type ontology:Q2031291 . ?l property:P175 resource:Q7142713 } UNION { ?l property:P175 resource:Q715842 . ?l rdf:type ontology:Q2031291 } }
Everything Glorious Monster Mash Sacred Revolution How Great Is Our God Passion: The Road to One Day
5
action count
action union
action filter_type
action find_reverse
entity Bobby Pickett
relation performer
type release
action filter_type
action find_reverse
entity Passion Conferences
relation performer
type release
[{'concept': 'release'}, 'performer', 'Bobby Pickett'] [{'concept': 'release'}, 'performer', 'Passion Conferences']
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { ?l rdf:type ontology:release . ?l property:performer resource:Passion_Conferences } UNION { ?l property:performer resource:Bobby_Pickett . ?l rdf:type ontology:release } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q715842 Q4845055
P21
Q290
USER
How many sexes do Bobby Pickett or María de la Soledad have ?
(Q715842,P21,c(Q290)) (Q4845055,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q715842
relation P21
type Q290
action filter_type
action find
entity Q4845055
relation P21
type Q290
['Q715842', 'P21', {'concept': 'Q290'}] ['Q4845055', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { VALUES ( ?y ) { ( resource:Q715842 ) ( resource:Q4845055 ) } . ?y property:P21 ?b }
Bobby Pickett María de la Soledad
action count
action union
action filter_type
action find
entity Bobby Pickett
relation gender
type sex
action filter_type
action find
entity María de la Soledad
relation gender
type sex
['Bobby Pickett', 'gender', {'concept': 'sex'}] ['María de la Soledad', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { VALUES ( ?y ) { ( resource:Bobby_Pickett ) ( resource:María_de_la_Soledad ) } . ?y property:gender ?b }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q715842,P21,c(Q290)) (Q4845055,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q715842
relation P21
type Q290
action filter_type
action find
entity Q4845055
relation P21
type Q290
[ANSWER]
['Q715842', 'P21', {'concept': 'Q290'}] ['Q4845055', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { VALUES ( ?y ) { ( resource:Q715842 ) ( resource:Q4845055 ) } . ?y property:P21 ?b }
male female
2
action count
action union
action filter_type
action find
entity Bobby Pickett
relation gender
type sex
action filter_type
action find
entity María de la Soledad
relation gender
type sex
['Bobby Pickett', 'gender', {'concept': 'sex'}] ['María de la Soledad', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { VALUES ( ?y ) { ( resource:Bobby_Pickett ) ( resource:María_de_la_Soledad ) } . ?y property:gender ?b }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P180
Q34379 Q3305213
USER
Which paintings depict max number of musical instruments ?
(c(Q3305213),P180,c(Q34379))
action argmax
action find_tuple_counts
relation P180
type Q3305213
type Q34379
[{'concept': 'Q3305213'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?z ) WHERE { ?r property:P180 ?c . ?r rdf:type ontology:Q3305213 . ?c rdf:type ontology:Q34379 } GROUP BY ?r } . FILTER ( ?z = ?a ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?a ) { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?m ) WHERE { ?l property:P180 ?e . ?l rdf:type ontology:Q3305213 . ?e rdf:type ontology:Q34379 } GROUP BY ?l } } }
action argmax
action find_tuple_counts
relation depicts
type painting
type musical instrument
[{'concept': 'painting'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?z ) WHERE { ?r property:depicts ?c . ?r rdf:type ontology:painting . ?c rdf:type ontology:musical_instrument } GROUP BY ?r } . FILTER ( ?z = ?a ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?a ) { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?m ) WHERE { ?l property:depicts ?e . ?l rdf:type ontology:painting . ?e rdf:type ontology:musical_instrument } GROUP BY ?l } } }
[]
musical instrument painting
Q25540861
SYSTEM
L'Ouïe
Q25540861
(c(Q3305213),P180,c(Q34379))
action argmax
action find_tuple_counts
relation P180
type Q3305213
type Q34379
[ANSWER] depict max number of musical instruments
[{'concept': 'Q3305213'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?z ) WHERE { ?r property:P180 ?c . ?r rdf:type ontology:Q3305213 . ?c rdf:type ontology:Q34379 } GROUP BY ?r } . FILTER ( ?z = ?a ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?a ) { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?m ) WHERE { ?l property:P180 ?e . ?l rdf:type ontology:Q3305213 . ?e rdf:type ontology:Q34379 } GROUP BY ?l } } }
L'Ouïe
L'Ouïe depict max number of musical instruments
L'Ouïe
action argmax
action find_tuple_counts
relation depicts
type painting
type musical instrument
[{'concept': 'painting'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?z ) WHERE { ?r property:depicts ?c . ?r rdf:type ontology:painting . ?c rdf:type ontology:musical_instrument } GROUP BY ?r } . FILTER ( ?z = ?a ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?a ) { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?m ) WHERE { ?l property:depicts ?e . ?l rdf:type ontology:painting . ?e rdf:type ontology:musical_instrument } GROUP BY ?l } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q1300012
P27 P1303
Q502895
USER
Which people plays toy piano and are a citizen of United States of America ?
AND((c(Q502895),P1303,Q1300012), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q1300012
relation P1303
action find_reverse
entity Q30
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q1300012'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1303 resource:Q1300012 . ?o property:P27 resource:Q30 }
United States of America toy piano
action filter_type
action intersection
action find_reverse
entity toy piano
relation instrument
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'toy piano'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:instrument resource:toy_piano . ?o property:country_of_citizenship resource:United_States_of_America }
[]
common name
Q5515313
SYSTEM
Gabby La La
Q5515313
AND((c(Q502895),P1303,Q1300012), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q1300012
relation P1303
action find_reverse
entity Q30
relation P27
type Q502895
Gabby La plays toy piano and are a citizen of United States of America
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q1300012'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1303 resource:Q1300012 . ?o property:P27 resource:Q30 }
Gabby La La
Gabby La plays toy piano and are a citizen of United States of America
Gabby La La
action filter_type
action intersection
action find_reverse
entity toy piano
relation instrument
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'toy piano'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:instrument resource:toy_piano . ?o property:country_of_citizenship resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5821799 Q5515313
P27 P495
Q15617994
USER
Which administrative territories are Gabby La La a civilian of or did El Día originate ?
OR((Q5515313,P27,c(Q15617994)), (Q5821799,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q5515313
relation P27
action find
entity Q5821799
relation P495
type Q15617994
{'OR': [['Q5515313', 'P27', {'concept': 'Q15617994'}], ['Q5821799', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5515313 property:P27 ?s } UNION { resource:Q5821799 property:P495 ?s } } . ?s rdf:type ontology:Q15617994 }
El Día Gabby La La
action filter_type
action union
action find
entity Gabby La La
relation country of citizenship
action find
entity El Día
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Gabby La La', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['El Día', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Gabby_La_La property:country_of_citizenship ?s } UNION { resource:El_Día property:country_of_origin ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q77 Q30
SYSTEM
Uruguay, United States of America
Q77 Q30
OR((Q5515313,P27,c(Q15617994)), (Q5821799,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q5515313
relation P27
action find
entity Q5821799
relation P495
type Q15617994
[ANSWERS] are Gabby La a civilian of or did El Día originate
{'OR': [['Q5515313', 'P27', {'concept': 'Q15617994'}], ['Q5821799', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5515313 property:P27 ?s } UNION { resource:Q5821799 property:P495 ?s } } . ?s rdf:type ontology:Q15617994 }
Uruguay United States of America
Uruguay and United States of America are Gabby La a civilian of or did El Día originate
Uruguay United States of America
action filter_type
action union
action find
entity Gabby La La
relation country of citizenship
action find
entity El Día
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Gabby La La', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['El Día', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Gabby_La_La property:country_of_citizenship ?s } UNION { resource:El_Día property:country_of_origin ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1718449 Q3609030
P58
Q838948
USER
Which works of art are Alec Sokolow or Peter Stone a screenwriter of ?
OR((c(Q838948),P58,Q3609030), (c(Q838948),P58,Q1718449))
action filter_type
action union
action find_reverse
entity Q3609030
relation P58
action find_reverse
entity Q1718449
relation P58
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P58', 'Q3609030'], [{'concept': 'Q838948'}, 'P58', 'Q1718449']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P58 resource:Q1718449 } UNION { ?v property:P58 resource:Q3609030 } } . ?v rdf:type ontology:Q838948 }
Peter Stone Alec Sokolow
action filter_type
action union
action find_reverse
entity Alec Sokolow
relation screenwriter
action find_reverse
entity Peter Stone
relation screenwriter
type work of art
{'OR': [[{'concept': 'work of art'}, 'screenwriter', 'Alec Sokolow'], [{'concept': 'work of art'}, 'screenwriter', 'Peter Stone']]}
SELECT DISTINCT ?v WHERE { { { ?v property:screenwriter resource:Peter_Stone } UNION { ?v property:screenwriter resource:Alec_Sokolow } } . ?v rdf:type ontology:work_of_art }
[]
work of art
Q1210736 Q633171 Q5594743 Q568928 Q496266 Q1193184 Q533638 Q822930 Q7997899 Q490632
SYSTEM
Some of them are Mirage, The Taking of Pelham One Two Three, Grand Larceny, Garfield: The Movie, Charade, The Secret War of Harry Frigg, Father Goose, Cheaper by the Dozen, Why Would I Lie?, Arabesque
Q1193184 Q7997899 Q822930 Q633171 Q568928 Q1216022 Q2300646 Q1210736 Q490632 Q3597744 Q5594743 Q533638 Q496266
OR((c(Q838948),P58,Q3609030), (c(Q838948),P58,Q1718449))
action filter_type
action union
action find_reverse
entity Q3609030
relation P58
action find_reverse
entity Q1718449
relation P58
type Q838948
[ANSWERS]
{'OR': [[{'concept': 'Q838948'}, 'P58', 'Q3609030'], [{'concept': 'Q838948'}, 'P58', 'Q1718449']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P58 resource:Q1718449 } UNION { ?v property:P58 resource:Q3609030 } } . ?v rdf:type ontology:Q838948 }
The Secret War of Harry Frigg Why Would I Lie? Cheaper by the Dozen The Taking of Pelham One Two Three Garfield: The Movie Who Is Killing the Great Chefs of Europe? Sweet Charity Mirage Arabesque 1776 Grand Larceny Father Goose Charade
Cheaper by the Dozen, Why would I Lie and Arabesque are Alec Sokolow or Peter Stone a screenwriter of
Mirage The Taking of Pelham One Two Three Grand Larceny Garfield: The Movie Charade The Secret War of Harry Frigg Father Goose Cheaper by the Dozen Why Would I Lie? Arabesque
action filter_type
action union
action find_reverse
entity Alec Sokolow
relation screenwriter
action find_reverse
entity Peter Stone
relation screenwriter
type work of art
{'OR': [[{'concept': 'work of art'}, 'screenwriter', 'Alec Sokolow'], [{'concept': 'work of art'}, 'screenwriter', 'Peter Stone']]}
SELECT DISTINCT ?v WHERE { { { ?v property:screenwriter resource:Peter_Stone } UNION { ?v property:screenwriter resource:Alec_Sokolow } } . ?v rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1718449
P1346
Q618779
USER
Which awards were Peter Stone decalred as a champion of ?
(c(Q618779),P1346,Q1718449)
action filter_type
action find_reverse
entity Q1718449
relation P1346
type Q618779
[{'concept': 'Q618779'}, 'P1346', 'Q1718449']
SELECT DISTINCT ?o WHERE { ?o property:P1346 resource:Q1718449 . ?o rdf:type ontology:Q618779 }
Peter Stone
action filter_type
action find_reverse
entity Peter Stone
relation winner
type award
[{'concept': 'award'}, 'winner', 'Peter Stone']
SELECT DISTINCT ?o WHERE { ?o property:winner resource:Peter_Stone . ?o rdf:type ontology:award }
[]
award
Q5305719 Q5305705
SYSTEM
Drama Desk Award for Outstanding Musical, Drama Desk Award for Outstanding Book of a Musical
Q5305719 Q5305705
(c(Q618779),P1346,Q1718449)
action filter_type
action find_reverse
entity Q1718449
relation P1346
type Q618779
Peter Stone were decalred as a champion of the [ANSWERS]
[{'concept': 'Q618779'}, 'P1346', 'Q1718449']
SELECT DISTINCT ?o WHERE { ?o property:P1346 resource:Q1718449 . ?o rdf:type ontology:Q618779 }
Drama Desk Award for Outstanding Musical Drama Desk Award for Outstanding Book of a Musical
Peter Stone were decalred as a champion of the Drama Desk Award for Outstanding Musical and Drama Desk Award for Outstanding Book of a Musical
Drama Desk Award for Outstanding Musical Drama Desk Award for Outstanding Book of a Musical
action filter_type
action find_reverse
entity Peter Stone
relation winner
type award
[{'concept': 'award'}, 'winner', 'Peter Stone']
SELECT DISTINCT ?o WHERE { ?o property:winner resource:Peter_Stone . ?o rdf:type ontology:award }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5305705
P1411
Q502895
USER
Which people were nominated for that award ?
(c(Q502895),P1411,Q5305705)
action filter_type
action find_reverse
entity Q5305705
relation P1411
type Q502895
[{'concept': 'Q502895'}, 'P1411', 'Q5305705']
SELECT DISTINCT ?y WHERE { ?y property:P1411 resource:Q5305705 . ?y rdf:type ontology:Q502895 }
Drama Desk Award for Outstanding Book of a Musical
action filter_type
action find_reverse
entity Drama Desk Award for Outstanding Book of a Musical
relation nominated for
type common name
[{'concept': 'common name'}, 'nominated for', 'Drama Desk Award for Outstanding Book of a Musical']
SELECT DISTINCT ?y WHERE { ?y property:nominated_for resource:Drama_Desk_Award_for_Outstanding_Book_of_a_Musical . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q5305719
SYSTEM
Did you mean Drama Desk Award for Outstanding Musical ?
Q5305719 Q5305705
(c(Q502895),P1411,Q5305719) (c(Q502895),P1411,Q5305705)
[ANSWER]
[{'concept': 'Q502895'}, 'P1411', 'Q5305719'] [{'concept': 'Q502895'}, 'P1411', 'Q5305705']
SELECT DISTINCT ?y WHERE { ?y property:P1411 resource:Q5305705 . ?y rdf:type ontology:Q502895 }
Drama Desk Award for Outstanding Musical Drama Desk Award for Outstanding Book of a Musical
Did you mean Drama Desk Award for Outstanding Musical ?
Drama Desk Award for Outstanding Musical
[{'concept': 'common name'}, 'nominated for', 'Drama Desk Award for Outstanding Musical'] [{'concept': 'common name'}, 'nominated for', 'Drama Desk Award for Outstanding Book of a Musical']
SELECT DISTINCT ?y WHERE { ?y property:nominated_for resource:Drama_Desk_Award_for_Outstanding_Book_of_a_Musical . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Drama Desk Award for Outstanding Book of a Musical. Could you tell me the answer for that?
(c(Q502895),P1411,Q5305705)
Q5305705
[{'concept': 'Q502895'}, 'P1411', 'Q5305705']
[{'concept': 'common name'}, 'nominated for', 'Drama Desk Award for Outstanding Book of a Musical']
[]
Q6137781 Q104266 Q315808
SYSTEM
James Lapine, Mel Brooks, Neil Simon
Q104266 Q449002 Q237454 Q315808 Q335672 Q6137781
(c(Q502895),P1411,Q5305705)
action filter_type
action find_reverse
entity Q5305705
relation P1411
type Q502895
[ANSWERS] were nominated for that award
[{'concept': 'Q502895'}, 'P1411', 'Q5305705']
SELECT DISTINCT ?y WHERE { ?y property:P1411 resource:Q5305705 . ?y rdf:type ontology:Q502895 }
Mel Brooks Jonathan Larson Marta Kauffman Neil Simon David Crane James Lapine
James Lapine, Mel Brooks and Neil Simon were nominated for that award
James Lapine Mel Brooks Neil Simon
action filter_type
action find_reverse
entity Drama Desk Award for Outstanding Book of a Musical
relation nominated for
type common name
[{'concept': 'common name'}, 'nominated for', 'Drama Desk Award for Outstanding Book of a Musical']
SELECT DISTINCT ?y WHERE { ?y property:nominated_for resource:Drama_Desk_Award_for_Outstanding_Book_of_a_Musical . ?y rdf:type ontology:common_name }
[]