Simple Question (Direct)
Simple Question
Q360737
P1412
Q34770
USER
Which language can Andrew Niccol understand ?
(Q360737,P1412,c(Q34770))
action filter_type
action find
entity Q360737
relation P1412
type Q34770
['Q360737', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q360737 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
Andrew Niccol
action filter_type
action find
entity Andrew Niccol
relation languages spoken, written or signed
type language
['Andrew Niccol', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Andrew_Niccol property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q360737,P1412,c(Q34770))
action filter_type
action find
entity Q360737
relation P1412
type Q34770
Andrew Niccol can understand [ANSWER]
['Q360737', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q360737 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
English
Andrew Niccol can understand English
English
action filter_type
action find
entity Andrew Niccol
relation languages spoken, written or signed
type language
['Andrew Niccol', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Andrew_Niccol property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q360737
P50
Q838948
USER
What is the work of art written by Andrew Niccol ?
(c(Q838948),P50,Q360737)
action filter_type
action find_reverse
entity Q360737
relation P50
type Q838948
[{'concept': 'Q838948'}, 'P50', 'Q360737']
SELECT DISTINCT ?k WHERE { ?k property:P50 resource:Q360737 . ?k rdf:type ontology:Q838948 }
Andrew Niccol
action filter_type
action find_reverse
entity Andrew Niccol
relation author
type work of art
[{'concept': 'work of art'}, 'author', 'Andrew Niccol']
SELECT DISTINCT ?k WHERE { ?k property:author resource:Andrew_Niccol . ?k rdf:type ontology:work_of_art }
[]
work of art
Q214801
SYSTEM
The Truman Show
Q214801
(c(Q838948),P50,Q360737)
action filter_type
action find_reverse
entity Q360737
relation P50
type Q838948
The work of art written by Andrew Niccol is entitled [ANSWER]
[{'concept': 'Q838948'}, 'P50', 'Q360737']
SELECT DISTINCT ?k WHERE { ?k property:P50 resource:Q360737 . ?k rdf:type ontology:Q838948 }
The Truman Show
The work of art written by Andrew Niccol is entitled The Truman Show
The Truman Show
action filter_type
action find_reverse
entity Andrew Niccol
relation author
type work of art
[{'concept': 'work of art'}, 'author', 'Andrew Niccol']
SELECT DISTINCT ?k WHERE { ?k property:author resource:Andrew_Niccol . ?k rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q214801
P495
Q15617994
USER
Where did that work of art originate ?
(Q214801,P495,c(Q15617994))
action filter_type
action find
entity Q214801
relation P495
type Q15617994
['Q214801', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q214801 property:P495 ?a . ?a rdf:type ontology:Q15617994 }
The Truman Show
action filter_type
action find
entity The Truman Show
relation country of origin
type designation for an administrative territorial entity
['The Truman Show', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:The_Truman_Show property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q214801,P495,c(Q15617994))
action filter_type
action find
entity Q214801
relation P495
type Q15617994
That work of art originated from [ANSWER]
['Q214801', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q214801 property:P495 ?a . ?a rdf:type ontology:Q15617994 }
United States of America
That work of art originated from United States of America
United States of America
action filter_type
action find
entity The Truman Show
relation country of origin
type designation for an administrative territorial entity
['The Truman Show', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:The_Truman_Show property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q2167428
P27
Q502895
USER
Is Rosine Jones a native of that administrative territory ?
(Q2167428,P27,Q30)
action is_in
entity Q30
action find
entity Q2167428
relation P27
['Q2167428', 'P27', 'Q30']
ASK WHERE { resource:Q2167428 property:P27 resource:Q30 }
United States of America Rosine Jones
action is_in
entity United States of America
action find
entity Rosine Jones
relation country of citizenship
['Rosine Jones', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Rosine_Jones property:country_of_citizenship resource:United_States_of_America }
[]
common name
SYSTEM
YES
(Q2167428,P27,Q30)
action is_in
entity Q30
action find
entity Q2167428
relation P27
[ANSWER]
['Q2167428', 'P27', 'Q30']
ASK WHERE { resource:Q2167428 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Rosine Jones
relation country of citizenship
['Rosine Jones', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Rosine_Jones property:country_of_citizenship resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10721717 Q214801
P161 P7
Q502895
USER
Which people were casted in The Truman Show or are Princess Lecheng a sibling of ?
OR((Q214801,P161,c(Q502895)), (Q10721717,P7,c(Q502895)))
action filter_type
action union
action find
entity Q214801
relation P161
action find
entity Q10721717
relation P7
type Q502895
{'OR': [['Q214801', 'P161', {'concept': 'Q502895'}], ['Q10721717', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . { { resource:Q10721717 property:P7 ?v } UNION { resource:Q214801 property:P161 ?v } } }
Princess Lecheng The Truman Show
action filter_type
action union
action find
entity The Truman Show
relation cast member
action find
entity Princess Lecheng
relation brother
type common name
{'OR': [['The Truman Show', 'cast member', {'concept': 'common name'}], ['Princess Lecheng', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . { { resource:Princess_Lecheng property:brother ?v } UNION { resource:The_Truman_Show property:cast_member ?v } } }
[]
common name
Q10720020 Q10720076 Q235198 Q345325 Q10719402 Q10719506 Q706559 Q229237 Q2690748 Q10719214
SYSTEM
Some of them are Li Huang, Li Ci, Holland Taylor, Harry Shearer, Li Sui, Li Min, Li Lin, Natascha McElhone, Brian Delate, Li Yao
Q10719244 Q10719506 Q2690748 Q447669 Q10720076 Q40504 Q433513 Q235198 Q10719962 Q558149 Q208649 Q6538710 Q10720201 Q6539240 Q10719160 Q5972977 Q10720020 Q10719322 Q10720375 Q104791 Q10719457 Q10720319 Q345325 Q10719214 Q9749 Q223281 Q720530 Q10337309 Q10719817 Q10719917 Q10720135 Q229237 Q10719284 Q706559 Q10719402
OR((Q214801,P161,c(Q502895)), (Q10721717,P7,c(Q502895)))
action filter_type
action union
action find
entity Q214801
relation P161
action find
entity Q10721717
relation P7
type Q502895
[ANSWERS] were casted in The Truman Show or are Princess Lecheng a sibling of
{'OR': [['Q214801', 'P161', {'concept': 'Q502895'}], ['Q10721717', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . { { resource:Q10721717 property:P7 ?v } UNION { resource:Q214801 property:P161 ?v } } }
Li Wan Li Min Brian Delate Philip Baker Hall Li Ci Jim Carrey Peter Krause Holland Taylor Li Huan Don Taylor Paul Giamatti Li Cong Li Gong Li Ying Li Tan Li Mao Li Huang Li Yi Li Jing Ed Harris Li Jiao Li Xuan Harry Shearer Li Yao Emperor Suzong of Tang Laura Linney Noah Emmerich Li Zhen Li Bin Li Qi Li Gui Natascha McElhone Li Ju Li Lin Li Sui
Li Huang, Li Ci, Holland Taylor, Harry Shearer, Li Sui, Li Min, Li Lin, Natascha McElhone, Brian Delate and Li Yao were casted in The Truman Show or are Princess Lecheng a sibling of
Li Huang Li Ci Holland Taylor Harry Shearer Li Sui Li Min Li Lin Natascha McElhone Brian Delate Li Yao
action filter_type
action union
action find
entity The Truman Show
relation cast member
action find
entity Princess Lecheng
relation brother
type common name
{'OR': [['The Truman Show', 'cast member', {'concept': 'common name'}], ['Princess Lecheng', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . { { resource:Princess_Lecheng property:brother ?v } UNION { resource:The_Truman_Show property:cast_member ?v } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by exactly 3 people ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?e = 3 ) }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?e = 3 ) }
[]
musical instrument common name
SYSTEM
2
Q626035 Q726306
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?e = 3 ) }
glockenspiel erhu
2
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?e = 3 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can approximately 1979 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1979
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?e ) WHERE { ?g rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 . ?p property:P1303 ?g } GROUP BY ?g } . FILTER ( ?e = 1979 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1979
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?e ) WHERE { ?g rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name . ?p property:instrument ?g } GROUP BY ?g } . FILTER ( ?e = 1979 ) }
[]
musical instrument common name
Q46185 Q80019 Q8338
SYSTEM
bass guitar, double bass, trumpet
Q46185 Q80019 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1979
[ANSWERS] can approximately 1979 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?e ) WHERE { ?g rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 . ?p property:P1303 ?g } GROUP BY ?g } . FILTER ( ?e = 1979 ) }
bass guitar double bass trumpet cello organ drum kit
Bass guitar, double bass and trumpet can approximately 1979 people perform with
bass guitar double bass trumpet
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1979
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?e ) WHERE { ?g rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name . ?p property:instrument ?g } GROUP BY ?g } . FILTER ( ?e = 1979 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q593995
P870
Q34379 Q838948 Q188451
USER
Which musical instruments were used in the composition of around the same number of works of art and music genres as player piano ?
(c(Q838948)|c(Q188451),P870,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q188451
action count
action filter_multi_types
action find_reverse
entity Q593995
relation P870
type Q838948
type Q188451
[[{'concept': 'Q838948'}, {'concept': 'Q188451'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) ?v WHERE { { ?y property:P870 ?v . ?v rdf:type ontology:Q34379 . ?y rdf:type ontology:Q188451 } UNION { ?v rdf:type ontology:Q34379 . ?y rdf:type ontology:Q838948 . ?y property:P870 ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { { ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q188451 } } . ?o property:P870 resource:Q593995 } } . FILTER ( ?t = ?d ) }
player piano
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type music genre
action count
action filter_multi_types
action find_reverse
entity player piano
relation instrumentation
type work of art
type music genre
[[{'concept': 'work of art'}, {'concept': 'music genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) ?v WHERE { { ?y property:instrumentation ?v . ?v rdf:type ontology:musical_instrument . ?y rdf:type ontology:music_genre } UNION { ?v rdf:type ontology:musical_instrument . ?y rdf:type ontology:work_of_art . ?y property:instrumentation ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { { ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:music_genre } } . ?o property:instrumentation resource:player_piano } } . FILTER ( ?t = ?d ) }
[]
musical instrument work of art music genre
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(Q838948)|c(Q188451),P870,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q188451
action count
action filter_multi_types
action find_reverse
entity Q593995
relation P870
type Q838948
type Q188451
[ANSWERS] were used in the composition of around the same number of works of art and music genres as player piano
[[{'concept': 'Q838948'}, {'concept': 'Q188451'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) ?v WHERE { { ?y property:P870 ?v . ?v rdf:type ontology:Q34379 . ?y rdf:type ontology:Q188451 } UNION { ?v rdf:type ontology:Q34379 . ?y rdf:type ontology:Q838948 . ?y property:P870 ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { { ?o rdf:type ontology:Q838948 } UNION { ?o rdf:type ontology:Q188451 } } . ?o property:P870 resource:Q593995 } } . FILTER ( ?t = ?d ) }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta organ maraca drum vibraphone harpsichord
Baryton, harpsichord and viola were used in the composition of around the same number of works of art and music genres as player piano
baryton harpsichord viola
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type music genre
action count
action filter_multi_types
action find_reverse
entity player piano
relation instrumentation
type work of art
type music genre
[[{'concept': 'work of art'}, {'concept': 'music genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) ?v WHERE { { ?y property:instrumentation ?v . ?v rdf:type ontology:musical_instrument . ?y rdf:type ontology:music_genre } UNION { ?v rdf:type ontology:musical_instrument . ?y rdf:type ontology:work_of_art . ?y property:instrumentation ?v } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { { ?o rdf:type ontology:work_of_art } UNION { ?o rdf:type ontology:music_genre } } . ?o property:instrumentation resource:player_piano } } . FILTER ( ?t = ?d ) }
[]