Simple Question (Direct)
Simple Question
Q3183305
P54
Q12973014
USER
What is Jonathan Aka a member of ?
(Q3183305,P54,c(Q12973014))
action filter_type
action find
entity Q3183305
relation P54
type Q12973014
['Q3183305', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?g WHERE { resource:Q3183305 property:P54 ?g . ?g rdf:type ontology:Q12973014 }
Jonathan Aka
action filter_type
action find
entity Jonathan Aka
relation member of sports team
type sports team
['Jonathan Aka', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?g WHERE { resource:Jonathan_Aka property:member_of_sports_team ?g . ?g rdf:type ontology:sports_team }
[]
sports team
Q274566
SYSTEM
Élan Béarnais Pau-Orthez
Q274566
(Q3183305,P54,c(Q12973014))
action filter_type
action find
entity Q3183305
relation P54
type Q12973014
Jonathan is [ANSWER]
['Q3183305', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?g WHERE { resource:Q3183305 property:P54 ?g . ?g rdf:type ontology:Q12973014 }
Élan Béarnais Pau-Orthez
Jonathan is Élan Béarnais Pau-Orthez
Élan Béarnais Pau-Orthez
action filter_type
action find
entity Jonathan Aka
relation member of sports team
type sports team
['Jonathan Aka', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?g WHERE { resource:Jonathan_Aka property:member_of_sports_team ?g . ?g rdf:type ontology:sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3183305
P21
Q290
USER
Which sex does Jonathan Aka possess ?
(Q3183305,P21,c(Q290))
action filter_type
action find
entity Q3183305
relation P21
type Q290
['Q3183305', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . resource:Q3183305 property:P21 ?y }
Jonathan Aka
action filter_type
action find
entity Jonathan Aka
relation gender
type sex
['Jonathan Aka', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . resource:Jonathan_Aka property:gender ?y }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3183305,P21,c(Q290))
action filter_type
action find
entity Q3183305
relation P21
type Q290
The [ANSWER] does Jonathan Aka possess
['Q3183305', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . resource:Q3183305 property:P21 ?y }
male
The male does Jonathan Aka possess
male
action filter_type
action find
entity Jonathan Aka
relation gender
type sex
['Jonathan Aka', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . resource:Jonathan_Aka property:gender ?y }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P641
Q349 Q12973014
USER
Which sports were exactly 3 sports teams a part of ?
(c(Q12973014),P641,c(Q349))
action equal
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
value 3
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:P641 ?l . ?l rdf:type ontology:Q349 . ?m rdf:type ontology:Q12973014 } GROUP BY ?l } . FILTER ( ?y = 3 ) }
action equal
action find_reverse_tuple_counts
relation sport
type sport
type sports team
value 3
[{'concept': 'sports team'}, 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:sport ?l . ?l rdf:type ontology:sport . ?m rdf:type ontology:sports_team } GROUP BY ?l } . FILTER ( ?y = 3 ) }
[]
sport sports team
Q17163326 Q5377 Q963312
SYSTEM
motorcycle racing, golf, Sledge hockey
Q17163326 Q133201 Q5377 Q43450 Q963312
(c(Q12973014),P641,c(Q349))
action equal
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
value 3
[ANSWERS] were exactly 3 sports teams a part of
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:P641 ?l . ?l rdf:type ontology:Q349 . ?m rdf:type ontology:Q12973014 } GROUP BY ?l } . FILTER ( ?y = 3 ) }
motorcycle racing squash golf gymnastics Sledge hockey
Motorcycle racing, golf and Sledge hockey were exactly 3 sports teams a part of
motorcycle racing golf Sledge hockey
action equal
action find_reverse_tuple_counts
relation sport
type sport
type sports team
value 3
[{'concept': 'sports team'}, 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:sport ?l . ?l rdf:type ontology:sport . ?m rdf:type ontology:sports_team } GROUP BY ?l } . FILTER ( ?y = 3 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P366
Q349 Q811979 Q1076486
USER
How many sports are considered as the main functionality of exactly 1 architectural structures and sports venues ?
(c(Q811979)|c(Q1076486),P366,c(Q349))
action count
action equal
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
value 1
[[{'concept': 'Q811979'}, {'concept': 'Q1076486'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?k ) WHERE { { ?f rdf:type ontology:Q349 . ?o rdf:type ontology:Q811979 . ?o property:P366 ?f } UNION { ?o property:P366 ?f . ?f rdf:type ontology:Q349 . ?o rdf:type ontology:Q1076486 } } GROUP BY ?f } . FILTER ( ?k = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type sports venue
value 1
[[{'concept': 'architectural structure'}, {'concept': 'sports venue'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?k ) WHERE { { ?f rdf:type ontology:sport . ?o rdf:type ontology:architectural_structure . ?o property:use ?f } UNION { ?o property:use ?f . ?f rdf:type ontology:sport . ?o rdf:type ontology:sports_venue } } GROUP BY ?f } . FILTER ( ?k = 1 ) }
[]
sport architectural structure sports venue
SYSTEM
7
Q5372 Q8418 Q1734 Q624161 Q1345388 Q206763 Q1194269
(c(Q811979)|c(Q1076486),P366,c(Q349))
action count
action equal
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
value 1
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q1076486'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?k ) WHERE { { ?f rdf:type ontology:Q349 . ?o rdf:type ontology:Q811979 . ?o property:P366 ?f } UNION { ?o property:P366 ?f . ?f rdf:type ontology:Q349 . ?o rdf:type ontology:Q1076486 } } GROUP BY ?f } . FILTER ( ?k = 1 ) }
basketball handball volleyball gliding greyhound racing floorball harness racing
7
action count
action equal
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type sports venue
value 1
[[{'concept': 'architectural structure'}, {'concept': 'sports venue'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?k ) WHERE { { ?f rdf:type ontology:sport . ?o rdf:type ontology:architectural_structure . ?o property:use ?f } UNION { ?o property:use ?f . ?f rdf:type ontology:sport . ?o rdf:type ontology:sports_venue } } GROUP BY ?f } . FILTER ( ?k = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17163326
P121
Q42889
USER
What is operated by motorcycle racing ?
(Q17163326,P121,c(Q42889))
action filter_type
action find
entity Q17163326
relation P121
type Q42889
['Q17163326', 'P121', {'concept': 'Q42889'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q42889 . resource:Q17163326 property:P121 ?r }
motorcycle racing
action filter_type
action find
entity motorcycle racing
relation item operated
type vehicle
['motorcycle racing', 'item operated', {'concept': 'vehicle'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:vehicle . resource:motorcycle_racing property:item_operated ?r }
[]
vehicle
Q34493
SYSTEM
motorcycle
Q34493
(Q17163326,P121,c(Q42889))
action filter_type
action find
entity Q17163326
relation P121
type Q42889
The [ANSWER] is operated by [ANSWER] racing
['Q17163326', 'P121', {'concept': 'Q42889'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q42889 . resource:Q17163326 property:P121 ?r }
motorcycle
The motorcycle is operated by motorcycle racing
motorcycle
action filter_type
action find
entity motorcycle racing
relation item operated
type vehicle
['motorcycle racing', 'item operated', {'concept': 'vehicle'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:vehicle . resource:motorcycle_racing property:item_operated ?r }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P520
Q42889 Q2235308
USER
Which ship types have max number of vehicles as their weapon ?
(c(Q2235308),P520,c(Q42889))
action argmax
action find_tuple_counts
relation P520
type Q2235308
type Q42889
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q42889'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?d = ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?d ) WHERE { ?t property:P520 ?o . ?t rdf:type ontology:Q2235308 . ?o rdf:type ontology:Q42889 } GROUP BY ?t } . { SELECT DISTINCT ( MAX ( ?q ) AS ?j ) { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?q ) WHERE { ?g property:P520 ?p . ?p rdf:type ontology:Q42889 . ?g rdf:type ontology:Q2235308 } GROUP BY ?g } } }
action argmax
action find_tuple_counts
relation armament
type ship type
type vehicle
[{'concept': 'ship type'}, 'armament', {'concept': 'vehicle'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?d = ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?d ) WHERE { ?t property:armament ?o . ?t rdf:type ontology:ship_type . ?o rdf:type ontology:vehicle } GROUP BY ?t } . { SELECT DISTINCT ( MAX ( ?q ) AS ?j ) { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?q ) WHERE { ?g property:armament ?p . ?p rdf:type ontology:vehicle . ?g rdf:type ontology:ship_type } GROUP BY ?g } } }
[]
vehicle ship type
Q2000932
SYSTEM
USS Ramage
Q2000932
(c(Q2235308),P520,c(Q42889))
action argmax
action find_tuple_counts
relation P520
type Q2235308
type Q42889
[ANSWER] have max number of vehicles as their weapon
[{'concept': 'Q2235308'}, 'P520', {'concept': 'Q42889'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?d = ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?d ) WHERE { ?t property:P520 ?o . ?t rdf:type ontology:Q2235308 . ?o rdf:type ontology:Q42889 } GROUP BY ?t } . { SELECT DISTINCT ( MAX ( ?q ) AS ?j ) { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?q ) WHERE { ?g property:P520 ?p . ?p rdf:type ontology:Q42889 . ?g rdf:type ontology:Q2235308 } GROUP BY ?g } } }
USS Ramage
USS Ramage have max number of vehicles as their weapon
USS Ramage
action argmax
action find_tuple_counts
relation armament
type ship type
type vehicle
[{'concept': 'ship type'}, 'armament', {'concept': 'vehicle'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?d = ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?d ) WHERE { ?t property:armament ?o . ?t rdf:type ontology:ship_type . ?o rdf:type ontology:vehicle } GROUP BY ?t } . { SELECT DISTINCT ( MAX ( ?q ) AS ?j ) { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?q ) WHERE { ?g property:armament ?p . ?p rdf:type ontology:vehicle . ?g rdf:type ontology:ship_type } GROUP BY ?g } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2000932
P166
Q502895
USER
Which person received the award titled that ship type ?
(c(Q502895),P166,Q2000932)
action filter_type
action find_reverse
entity Q2000932
relation P166
type Q502895
[{'concept': 'Q502895'}, 'P166', 'Q2000932']
SELECT DISTINCT ?k WHERE { ?k property:P166 resource:Q2000932 . ?k rdf:type ontology:Q502895 }
USS Ramage
action filter_type
action find_reverse
entity USS Ramage
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'USS Ramage']
SELECT DISTINCT ?k WHERE { ?k property:award_received resource:USS_Ramage . ?k rdf:type ontology:common_name }
[]
common name
Q946975
SYSTEM
Lawson P. Ramage
Q946975
(c(Q502895),P166,Q2000932)
action filter_type
action find_reverse
entity Q2000932
relation P166
type Q502895
[ANSWER] received the award titled that ship type
[{'concept': 'Q502895'}, 'P166', 'Q2000932']
SELECT DISTINCT ?k WHERE { ?k property:P166 resource:Q2000932 . ?k rdf:type ontology:Q502895 }
Lawson P. Ramage
Lawson P. Ramage received the award titled that ship type
Lawson P. Ramage
action filter_type
action find_reverse
entity USS Ramage
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'USS Ramage']
SELECT DISTINCT ?k WHERE { ?k property:award_received resource:USS_Ramage . ?k rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P241
Q781132
USER
How many military branches are that person affiliated to ?
(Q946975,P241,c(Q781132))
action count
action filter_type
action find
entity Q946975
relation P241
type Q781132
['Q946975', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q946975 property:P241 ?a . ?a rdf:type ontology:Q781132 }
action count
action filter_type
action find
entity Lawson P. Ramage
relation military branch
type military branch
['Lawson P. Ramage', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Lawson_P._Ramage property:military_branch ?a . ?a rdf:type ontology:military_branch }
[]
military branch
SYSTEM
1
Q11220
(Q946975,P241,c(Q781132))
action count
action filter_type
action find
entity Q946975
relation P241
type Q781132
[ANSWER]
['Q946975', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q946975 property:P241 ?a . ?a rdf:type ontology:Q781132 }
United States Navy
1
action count
action filter_type
action find
entity Lawson P. Ramage
relation military branch
type military branch
['Lawson P. Ramage', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Lawson_P._Ramage property:military_branch ?a . ?a rdf:type ontology:military_branch }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2000932 Q14213870
P289
Q2235308
USER
How many ship types do the vessel classes of USS Ramage or SAS Good Hope belong to ?
(Q2000932,P289,c(Q2235308)) (Q14213870,P289,c(Q2235308))
action count
action union
action filter_type
action find
entity Q2000932
relation P289
type Q2235308
action filter_type
action find
entity Q14213870
relation P289
type Q2235308
['Q2000932', 'P289', {'concept': 'Q2235308'}] ['Q14213870', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { ?x rdf:type ontology:Q2235308 . resource:Q2000932 property:P289 ?x } UNION { resource:Q14213870 property:P289 ?x . ?x rdf:type ontology:Q2235308 } }
USS Ramage SAS Good Hope
action count
action union
action filter_type
action find
entity USS Ramage
relation vessel class
type ship type
action filter_type
action find
entity SAS Good Hope
relation vessel class
type ship type
['USS Ramage', 'vessel class', {'concept': 'ship type'}] ['SAS Good Hope', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { ?x rdf:type ontology:ship_type . resource:USS_Ramage property:vessel_class ?x } UNION { resource:SAS_Good_Hope property:vessel_class ?x . ?x rdf:type ontology:ship_type } }
[]
ship type
SYSTEM
2
Q6664858 Q674909
(Q2000932,P289,c(Q2235308)) (Q14213870,P289,c(Q2235308))
action count
action union
action filter_type
action find
entity Q2000932
relation P289
type Q2235308
action filter_type
action find
entity Q14213870
relation P289
type Q2235308
[ANSWER]
['Q2000932', 'P289', {'concept': 'Q2235308'}] ['Q14213870', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { ?x rdf:type ontology:Q2235308 . resource:Q2000932 property:P289 ?x } UNION { resource:Q14213870 property:P289 ?x . ?x rdf:type ontology:Q2235308 } }
Loch-class frigate Arleigh Burke-class destroyer
2
action count
action union
action filter_type
action find
entity USS Ramage
relation vessel class
type ship type
action filter_type
action find
entity SAS Good Hope
relation vessel class
type ship type
['USS Ramage', 'vessel class', {'concept': 'ship type'}] ['SAS Good Hope', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { ?x rdf:type ontology:ship_type . resource:USS_Ramage property:vessel_class ?x } UNION { resource:SAS_Good_Hope property:vessel_class ?x . ?x rdf:type ontology:ship_type } }
[]