Simple Question (Direct)
Simple Question
Q10546453
P21
Q290
USER
Which sex does Mohd Amir Ajmal Mohd Tahir possess ?
(Q10546453,P21,c(Q290))
action filter_type
action find
entity Q10546453
relation P21
type Q290
['Q10546453', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q10546453 property:P21 ?l . ?l rdf:type ontology:Q290 }
Mohd Amir Ajmal Mohd Tahir
action filter_type
action find
entity Mohd Amir Ajmal Mohd Tahir
relation gender
type sex
['Mohd Amir Ajmal Mohd Tahir', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Mohd_Amir_Ajmal_Mohd_Tahir property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q10546453,P21,c(Q290))
action filter_type
action find
entity Q10546453
relation P21
type Q290
Mohd Amir Ajmal Mohd Tahir possesses a [ANSWER]
['Q10546453', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q10546453 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
Mohd Amir Ajmal Mohd Tahir possesses a male
male
action filter_type
action find
entity Mohd Amir Ajmal Mohd Tahir
relation gender
type sex
['Mohd Amir Ajmal Mohd Tahir', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Mohd_Amir_Ajmal_Mohd_Tahir property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10546453
P641
Q349
USER
Which sport was that person a part of ?
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q10546453
relation P641
type Q349
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { resource:Q10546453 property:P641 ?x . ?x rdf:type ontology:Q349 }
Mohd Amir Ajmal Mohd Tahir
action filter_type
action find
entity Mohd Amir Ajmal Mohd Tahir
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { resource:Mohd_Amir_Ajmal_Mohd_Tahir property:sport ?x . ?x rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q10546453
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { resource:Q10546453 property:P641 ?x . ?x rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Mohd Amir Ajmal Mohd Tahir
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { resource:Mohd_Amir_Ajmal_Mohd_Tahir property:sport ?x . ?x rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10546453
P54
Q1194951
USER
Which national sports team is that person a member of ?
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q10546453
relation P54
type Q1194951
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { resource:Q10546453 property:P54 ?v . ?v rdf:type ontology:Q1194951 }
Mohd Amir Ajmal Mohd Tahir
action filter_type
action find
entity Mohd Amir Ajmal Mohd Tahir
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { resource:Mohd_Amir_Ajmal_Mohd_Tahir property:member_of_sports_team ?v . ?v rdf:type ontology:national_sports_team }
[]
national sports team
Q239555
SYSTEM
Brunei national football team
Q239555
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q10546453
relation P54
type Q1194951
The [ANSWER] is that person a member of
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { resource:Q10546453 property:P54 ?v . ?v rdf:type ontology:Q1194951 }
Brunei national football team
The Brunei national football team is that person a member of
Brunei national football team
action filter_type
action find
entity Mohd Amir Ajmal Mohd Tahir
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { resource:Mohd_Amir_Ajmal_Mohd_Tahir property:member_of_sports_team ?v . ?v rdf:type ontology:national_sports_team }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q239555 Q491858 Q921
P17
Q15617994
USER
Is that national sports team located in Valdina and Brunei ?
(Q239555,P17,Q491858) (Q239555,P17,Q921)
action is_in
entity Q239555
action intersection
action find_reverse
entity Q491858
relation P17
action find_reverse
entity Q921
relation P17
['Q239555', 'P17', 'Q491858'] ['Q239555', 'P17', 'Q921']
ASK WHERE { resource:Q239555 property:P17 resource:Q491858 . resource:Q239555 property:P17 resource:Q921 }
Brunei national football team Valdina Brunei
action is_in
entity Brunei national football team
action intersection
action find_reverse
entity Valdina
relation country
action find_reverse
entity Brunei
relation country
['Brunei national football team', 'country', 'Valdina'] ['Brunei national football team', 'country', 'Brunei']
ASK WHERE { resource:Brunei_national_football_team property:country resource:Valdina . resource:Brunei_national_football_team property:country resource:Brunei }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q239555,P17,Q491858) (Q239555,P17,Q921)
action is_in
entity Q239555
action intersection
action find_reverse
entity Q491858
relation P17
action find_reverse
entity Q921
relation P17
[ANSWER]
['Q239555', 'P17', 'Q491858'] ['Q239555', 'P17', 'Q921']
ASK WHERE { resource:Q239555 property:P17 resource:Q491858 . resource:Q239555 property:P17 resource:Q921 }
NO and YES respectively
action is_in
entity Brunei national football team
action intersection
action find_reverse
entity Valdina
relation country
action find_reverse
entity Brunei
relation country
['Brunei national football team', 'country', 'Valdina'] ['Brunei national football team', 'country', 'Brunei']
ASK WHERE { resource:Brunei_national_football_team property:country resource:Valdina . resource:Brunei_national_football_team property:country resource:Brunei }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can approximately 2016 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2016
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { FILTER ( ?a = 2016 ) . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?x } }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2016
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { FILTER ( ?a = 2016 ) . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?x } }
[]
musical instrument common name
SYSTEM
6
Q46185 Q80019 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2016
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { FILTER ( ?a = 2016 ) . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?x } }
bass guitar double bass trumpet cello organ drum kit
6
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2016
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { FILTER ( ?a = 2016 ) . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?x } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 34 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 34
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P1303 ?q . ?w rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . FILTER ( ?g = 34 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 34
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:instrument ?q . ?w rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . FILTER ( ?g = 34 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 34
[ANSWERS] are played by approximately 34 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P1303 ?q . ?w rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . FILTER ( ?g = 34 ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano are played by approximately 34 people
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 34
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:instrument ?q . ?w rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . FILTER ( ?g = 34 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q239555
P466
Q483110
USER
Which stadium is inhabited by Brunei national football team ?
(c(Q483110),P466,Q239555)
action filter_type
action find_reverse
entity Q239555
relation P466
type Q483110
[{'concept': 'Q483110'}, 'P466', 'Q239555']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q483110 . ?a property:P466 resource:Q239555 }
Brunei national football team
action filter_type
action find_reverse
entity Brunei national football team
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Brunei national football team']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:stadium . ?a property:occupant resource:Brunei_national_football_team }
[]
stadium
Q2298668
SYSTEM
Sultan Hassanal Bolkiah Stadium
Q2298668
(c(Q483110),P466,Q239555)
action filter_type
action find_reverse
entity Q239555
relation P466
type Q483110
[ANSWER] is inhabited by Brunei national football team
[{'concept': 'Q483110'}, 'P466', 'Q239555']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q483110 . ?a property:P466 resource:Q239555 }
Sultan Hassanal Bolkiah Stadium
Sultan Hassanal Bolkiah Stadium is inhabited by Brunei national football team
Sultan Hassanal Bolkiah Stadium
action filter_type
action find_reverse
entity Brunei national football team
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Brunei national football team']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:stadium . ?a property:occupant resource:Brunei_national_football_team }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q169941 Q239555
P466
Q483110
USER
Or Cardiff Blues?
OR((c(Q483110),P466,Q239555), (c(Q483110),P466,Q169941))
action filter_type
action union
action find_reverse
entity Q239555
relation P466
action find_reverse
entity Q169941
relation P466
type Q483110
{'OR': [[{'concept': 'Q483110'}, 'P466', 'Q239555'], [{'concept': 'Q483110'}, 'P466', 'Q169941']]}
SELECT DISTINCT ?z WHERE { { { ?z property:P466 resource:Q239555 } UNION { ?z property:P466 resource:Q169941 } } . ?z rdf:type ontology:Q483110 }
Cardiff Blues Brunei national football team
action filter_type
action union
action find_reverse
entity Brunei national football team
relation occupant
action find_reverse
entity Cardiff Blues
relation occupant
type stadium
{'OR': [[{'concept': 'stadium'}, 'occupant', 'Brunei national football team'], [{'concept': 'stadium'}, 'occupant', 'Cardiff Blues']]}
SELECT DISTINCT ?z WHERE { { { ?z property:occupant resource:Brunei_national_football_team } UNION { ?z property:occupant resource:Cardiff_Blues } } . ?z rdf:type ontology:stadium }
[]
stadium
Q867902 Q2298668
SYSTEM
Cardiff City Stadium, Sultan Hassanal Bolkiah Stadium
Q867902 Q2298668
OR((c(Q483110),P466,Q239555), (c(Q483110),P466,Q169941))
action filter_type
action union
action find_reverse
entity Q239555
relation P466
action find_reverse
entity Q169941
relation P466
type Q483110
[ANSWERS]
{'OR': [[{'concept': 'Q483110'}, 'P466', 'Q239555'], [{'concept': 'Q483110'}, 'P466', 'Q169941']]}
SELECT DISTINCT ?z WHERE { { { ?z property:P466 resource:Q239555 } UNION { ?z property:P466 resource:Q169941 } } . ?z rdf:type ontology:Q483110 }
Cardiff City Stadium Sultan Hassanal Bolkiah Stadium
Cardiff City Stadium Sultan Hassanal Bolkiah Stadium
action filter_type
action union
action find_reverse
entity Brunei national football team
relation occupant
action find_reverse
entity Cardiff Blues
relation occupant
type stadium
{'OR': [[{'concept': 'stadium'}, 'occupant', 'Brunei national football team'], [{'concept': 'stadium'}, 'occupant', 'Cardiff Blues']]}
SELECT DISTINCT ?z WHERE { { { ?z property:occupant resource:Brunei_national_football_team } UNION { ?z property:occupant resource:Cardiff_Blues } } . ?z rdf:type ontology:stadium }
[]