Simple Question (Direct)
Simple Question
Q8038932
P54
Q1194951
USER
Which national sports team is Wu Kwok Hung a member of ?
(Q8038932,P54,c(Q1194951))
action filter_type
action find
entity Q8038932
relation P54
type Q1194951
['Q8038932', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?c WHERE { resource:Q8038932 property:P54 ?c . ?c rdf:type ontology:Q1194951 }
Wu Kwok Hung
action filter_type
action find
entity Wu Kwok Hung
relation member of sports team
type national sports team
['Wu Kwok Hung', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?c WHERE { resource:Wu_Kwok_Hung property:member_of_sports_team ?c . ?c rdf:type ontology:national_sports_team }
[]
national sports team
Q242119
SYSTEM
Hong Kong national football team
Q242119
(Q8038932,P54,c(Q1194951))
action filter_type
action find
entity Q8038932
relation P54
type Q1194951
The [ANSWER] is Wu Kwok Hung a member of
['Q8038932', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?c WHERE { resource:Q8038932 property:P54 ?c . ?c rdf:type ontology:Q1194951 }
Hong Kong national football team
The Hong Kong national football team is Wu Kwok Hung a member of
Hong Kong national football team
action filter_type
action find
entity Wu Kwok Hung
relation member of sports team
type national sports team
['Wu Kwok Hung', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?c WHERE { resource:Wu_Kwok_Hung property:member_of_sports_team ?c . ?c rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8038932
P641
Q349
USER
Which sport was that person a part of ?
(Q242119,P641,c(Q349))
action filter_type
action find
entity Q8038932
relation P641
type Q349
['Q242119', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q8038932 property:P641 ?r . ?r rdf:type ontology:Q349 }
Wu Kwok Hung
action filter_type
action find
entity Wu Kwok Hung
relation sport
type sport
['Hong Kong national football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Wu_Kwok_Hung property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q242119,P641,c(Q349))
action filter_type
action find
entity Q8038932
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q242119', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q8038932 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Wu Kwok Hung
relation sport
type sport
['Hong Kong national football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Wu_Kwok_Hung property:sport ?r . ?r rdf:type ontology:sport }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atleast 292 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 292
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?r ) AS ?d ) WHERE { ?r property:P1303 ?o . ?r rdf:type ontology:Q502895 . ?o rdf:type ontology:Q34379 } GROUP BY ?o } . FILTER ( ?d >= 292 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 292
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?r ) AS ?d ) WHERE { ?r property:instrument ?o . ?r rdf:type ontology:common_name . ?o rdf:type ontology:musical_instrument } GROUP BY ?o } . FILTER ( ?d >= 292 ) }
[]
musical instrument common name
Q5994 Q80284 Q46185
SYSTEM
piano, viola, bass guitar
Q80284 Q46185 Q80019 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 292
[ANSWERS] can atleast 292 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?r ) AS ?d ) WHERE { ?r property:P1303 ?o . ?r rdf:type ontology:Q502895 . ?o rdf:type ontology:Q34379 } GROUP BY ?o } . FILTER ( ?d >= 292 ) }
viola bass guitar double bass piano trumpet cello violin organ drum kit electronic keyboard
Piano, viola and bass guitar can atleast 292 people perform with
piano viola bass guitar
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 292
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?r ) AS ?d ) WHERE { ?r property:instrument ?o . ?r rdf:type ontology:common_name . ?o rdf:type ontology:musical_instrument } GROUP BY ?o } . FILTER ( ?d >= 292 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8038932
P734
Q101352
USER
Who has the surname Wu Kwok Hung ?
(Q8038932,P734,c(Q101352))
action filter_type
action find
entity Q8038932
relation P734
type Q101352
['Q8038932', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?y WHERE { resource:Q8038932 property:P734 ?y . ?y rdf:type ontology:Q101352 }
Wu Kwok Hung
action filter_type
action find
entity Wu Kwok Hung
relation family name
type family name
['Wu Kwok Hung', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?y WHERE { resource:Wu_Kwok_Hung property:family_name ?y . ?y rdf:type ontology:family_name }
[]
family name
Q1132594
SYSTEM
Hu
Q1132594
(Q8038932,P734,c(Q101352))
action filter_type
action find
entity Q8038932
relation P734
type Q101352
[ANSWER] has the surname Wu Kwok [ANSWER]ng
['Q8038932', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?y WHERE { resource:Q8038932 property:P734 ?y . ?y rdf:type ontology:Q101352 }
Hu
Hu has the surname Wu Kwok Hung
Hu
action filter_type
action find
entity Wu Kwok Hung
relation family name
type family name
['Wu Kwok Hung', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?y WHERE { resource:Wu_Kwok_Hung property:family_name ?y . ?y rdf:type ontology:family_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q976408 Q242119
P641
Q349
USER
Which sports did Hong Kong national football team or Scotiabank Centre participate in ?
OR((Q242119,P641,c(Q349)), (Q976408,P641,c(Q349)))
action filter_type
action union
action find
entity Q242119
relation P641
action find
entity Q976408
relation P641
type Q349
{'OR': [['Q242119', 'P641', {'concept': 'Q349'}], ['Q976408', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q976408 property:P641 ?u } UNION { resource:Q242119 property:P641 ?u } } . ?u rdf:type ontology:Q349 }
Scotiabank Centre Hong Kong national football team
action filter_type
action union
action find
entity Hong Kong national football team
relation sport
action find
entity Scotiabank Centre
relation sport
type sport
{'OR': [['Hong Kong national football team', 'sport', {'concept': 'sport'}], ['Scotiabank Centre', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Scotiabank_Centre property:sport ?u } UNION { resource:Hong_Kong_national_football_team property:sport ?u } } . ?u rdf:type ontology:sport }
[]
sport
Q5372 Q2736
SYSTEM
basketball, association football
Q5372 Q2736
OR((Q242119,P641,c(Q349)), (Q976408,P641,c(Q349)))
action filter_type
action union
action find
entity Q242119
relation P641
action find
entity Q976408
relation P641
type Q349
Hong Kong national football team or Scotiabank Centre participated in [ANSWERS]
{'OR': [['Q242119', 'P641', {'concept': 'Q349'}], ['Q976408', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q976408 property:P641 ?u } UNION { resource:Q242119 property:P641 ?u } } . ?u rdf:type ontology:Q349 }
basketball association football
Hong Kong national football team or Scotiabank Centre participated in basketball and association football
basketball association football
action filter_type
action union
action find
entity Hong Kong national football team
relation sport
action find
entity Scotiabank Centre
relation sport
type sport
{'OR': [['Hong Kong national football team', 'sport', {'concept': 'sport'}], ['Scotiabank Centre', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Scotiabank_Centre property:sport ?u } UNION { resource:Hong_Kong_national_football_team property:sport ?u } } . ?u rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q115664
P641
Q502895
USER
Does Nicolas Fuss play those sports ?
(Q115664,P641,Q5372) (Q115664,P641,Q2736)
action is_in
entity prev_answer
action find
entity Q115664
relation P641
['Q115664', 'P641', 'Q5372'] ['Q115664', 'P641', 'Q2736']
ASK WHERE { resource:Q115664 property:P641 ?q . VALUES ( ?q ) { ( resource:Q5372 ) ( resource:Q2736 ) } }
Nicolas Fuss
action is_in
entity prev_answer
action find
entity Nicolas Fuss
relation sport
['Nicolas Fuss', 'sport', 'basketball'] ['Nicolas Fuss', 'sport', 'association football']
ASK WHERE { resource:Nicolas_Fuss property:sport ?q . VALUES ( ?q ) { ( resource:basketball ) ( resource:association_football ) } }
[]
common name
SYSTEM
NO
(Q115664,P641,Q5372) (Q115664,P641,Q2736)
action is_in
entity prev_answer
action find
entity Q115664
relation P641
[ANSWER]
['Q115664', 'P641', 'Q5372'] ['Q115664', 'P641', 'Q2736']
ASK WHERE { resource:Q115664 property:P641 ?q . VALUES ( ?q ) { ( resource:Q5372 ) ( resource:Q2736 ) } }
No
action is_in
entity prev_answer
action find
entity Nicolas Fuss
relation sport
['Nicolas Fuss', 'sport', 'basketball'] ['Nicolas Fuss', 'sport', 'association football']
ASK WHERE { resource:Nicolas_Fuss property:sport ?q . VALUES ( ?q ) { ( resource:basketball ) ( resource:association_football ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q242119 Q2736
P641
Q349
USER
Did Hong Kong national football team participate in association football ?
(Q242119,P641,Q2736)
action is_in
entity Q2736
action find
entity Q242119
relation P641
['Q242119', 'P641', 'Q2736']
ASK WHERE { resource:Q242119 property:P641 resource:Q2736 }
Hong Kong national football team association football
action is_in
entity association football
action find
entity Hong Kong national football team
relation sport
['Hong Kong national football team', 'sport', 'association football']
ASK WHERE { resource:Hong_Kong_national_football_team property:sport resource:association_football }
[]
sport
SYSTEM
YES
(Q242119,P641,Q2736)
action is_in
entity Q2736
action find
entity Q242119
relation P641
[ANSWER]
['Q242119', 'P641', 'Q2736']
ASK WHERE { resource:Q242119 property:P641 resource:Q2736 }
Yes
action is_in
entity association football
action find
entity Hong Kong national football team
relation sport
['Hong Kong national football team', 'sport', 'association football']
ASK WHERE { resource:Hong_Kong_national_football_team property:sport resource:association_football }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q18559712
P248
Q11204 Q35749 Q502895
USER
Which people have been referred in more number of legislatures or parliaments than David Christopher Davies ?
(c(Q502895),P248,c(Q11204)|c(Q35749))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11204
action find_tuple_counts
relation P248
type Q502895
type Q35749
action count
action filter_multi_types
action find
entity Q18559712
relation P248
type Q11204
type Q35749
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?m ) WHERE { { ?i property:P248 ?r . ?i rdf:type ontology:Q502895 . ?r rdf:type ontology:Q11204 } UNION { ?i property:P248 ?r . ?i rdf:type ontology:Q502895 . ?r rdf:type ontology:Q35749 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { ?u rdf:type ?h . VALUES ( ?h ) { ( ontology:Q11204 ) ( ontology:Q35749 ) } } . resource:Q18559712 property:P248 ?u } } . FILTER ( ?m > ?f ) }
David Christopher Davies
action greater
action union
action find_tuple_counts
relation stated in
type common name
type legislature
action find_tuple_counts
relation stated in
type common name
type parliament
action count
action filter_multi_types
action find
entity David Christopher Davies
relation stated in
type legislature
type parliament
[{'concept': 'common name'}, 'stated in', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?m ) WHERE { { ?i property:stated_in ?r . ?i rdf:type ontology:common_name . ?r rdf:type ontology:legislature } UNION { ?i property:stated_in ?r . ?i rdf:type ontology:common_name . ?r rdf:type ontology:parliament } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { ?u rdf:type ?h . VALUES ( ?h ) { ( ontology:legislature ) ( ontology:parliament ) } } . resource:David_Christopher_Davies property:stated_in ?u } } . FILTER ( ?m > ?f ) }
[]
legislature parliament common name
Q5606262 Q6228730 Q16105467
SYSTEM
Greg Smith, John Davies, John Rogers
Q5606264 Q5606262 Q5606263 Q16106932 Q17626521 Q16031816 Q8019900 Q6228730 Q6237308 Q18166520 Q16105467 Q5239885 Q17385895 Q6145001
(c(Q502895),P248,c(Q11204)|c(Q35749))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11204
action find_tuple_counts
relation P248
type Q502895
type Q35749
action count
action filter_multi_types
action find
entity Q18559712
relation P248
type Q11204
type Q35749
[ANSWERS] have been referred in more number of legislatures or parliaments than David Christopher Davies
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?m ) WHERE { { ?i property:P248 ?r . ?i rdf:type ontology:Q502895 . ?r rdf:type ontology:Q11204 } UNION { ?i property:P248 ?r . ?i rdf:type ontology:Q502895 . ?r rdf:type ontology:Q35749 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { ?u rdf:type ?h . VALUES ( ?h ) { ( ontology:Q11204 ) ( ontology:Q35749 ) } } . resource:Q18559712 property:P248 ?u } } . FILTER ( ?m > ?f ) }
Greg Smith Greg Smith Greg Smith David Evans Colin Campbell William Walker William Walker John Davies John Hall William Thompson John Rogers David Smith David Evans James Walker
Greg Smith, John Davies and John Rogers have been referred in more number of legislatures or parliaments than David Christopher Davies
Greg Smith John Davies John Rogers
action greater
action union
action find_tuple_counts
relation stated in
type common name
type legislature
action find_tuple_counts
relation stated in
type common name
type parliament
action count
action filter_multi_types
action find
entity David Christopher Davies
relation stated in
type legislature
type parliament
[{'concept': 'common name'}, 'stated in', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?m ) WHERE { { ?i property:stated_in ?r . ?i rdf:type ontology:common_name . ?r rdf:type ontology:legislature } UNION { ?i property:stated_in ?r . ?i rdf:type ontology:common_name . ?r rdf:type ontology:parliament } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { ?u rdf:type ?h . VALUES ( ?h ) { ( ontology:legislature ) ( ontology:parliament ) } } . resource:David_Christopher_Davies property:stated_in ?u } } . FILTER ( ?m > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q4096102
P248
Q11204 Q35749 Q502895
USER
And how about James Brown?
(c(Q502895),P248,c(Q11204)|c(Q35749))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11204
action find_tuple_counts
relation P248
type Q502895
type Q35749
action count
action filter_multi_types
action find
entity Q4096102
relation P248
type Q11204
type Q35749
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) ?p WHERE { VALUES ( ?v ) { ( ontology:Q11204 ) ( ontology:Q35749 ) } . ?e rdf:type ?v } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q4096102 property:P248 ?b . { { ?b rdf:type ontology:Q11204 } UNION { ?b rdf:type ontology:Q35749 } } } } . FILTER ( ?i > ?u ) }
James Brown
action greater
action union
action find_tuple_counts
relation stated in
type common name
type legislature
action find_tuple_counts
relation stated in
type common name
type parliament
action count
action filter_multi_types
action find
entity James Brown
relation stated in
type legislature
type parliament
[{'concept': 'common name'}, 'stated in', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) ?p WHERE { VALUES ( ?v ) { ( ontology:legislature ) ( ontology:parliament ) } . ?e rdf:type ?v } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:James_Brown property:stated_in ?b . { { ?b rdf:type ontology:legislature } UNION { ?b rdf:type ontology:parliament } } } } . FILTER ( ?i > ?u ) }
[]
legislature parliament common name
Q5606262 Q6228730 Q16105467
SYSTEM
Greg Smith, John Davies, John Rogers
Q5606264 Q5606262 Q5606263 Q16106932 Q17626521 Q16031816 Q8019900 Q6228730 Q6237308 Q18166520 Q16105467 Q5239885 Q17385895 Q6145001
(c(Q502895),P248,c(Q11204)|c(Q35749))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11204
action find_tuple_counts
relation P248
type Q502895
type Q35749
action count
action filter_multi_types
action find
entity Q4096102
relation P248
type Q11204
type Q35749
[ANSWERS]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) ?p WHERE { VALUES ( ?v ) { ( ontology:Q11204 ) ( ontology:Q35749 ) } . ?e rdf:type ?v } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q4096102 property:P248 ?b . { { ?b rdf:type ontology:Q11204 } UNION { ?b rdf:type ontology:Q35749 } } } } . FILTER ( ?i > ?u ) }
Greg Smith Greg Smith Greg Smith David Evans Colin Campbell William Walker William Walker John Davies John Hall William Thompson John Rogers David Smith David Evans James Walker
Greg Smith John Davies John Rogers
action greater
action union
action find_tuple_counts
relation stated in
type common name
type legislature
action find_tuple_counts
relation stated in
type common name
type parliament
action count
action filter_multi_types
action find
entity James Brown
relation stated in
type legislature
type parliament
[{'concept': 'common name'}, 'stated in', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) ?p WHERE { VALUES ( ?v ) { ( ontology:legislature ) ( ontology:parliament ) } . ?e rdf:type ?v } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:James_Brown property:stated_in ?b . { { ?b rdf:type ontology:legislature } UNION { ?b rdf:type ontology:parliament } } } } . FILTER ( ?i > ?u ) }
[]