Simple Question (Direct)
Simple Question
Q3245500
P641
Q349
USER
Which sport was Naoki Hommachi a part of ?
(Q3245500,P641,c(Q349))
action filter_type
action find
entity Q3245500
relation P641
type Q349
['Q3245500', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q349 . resource:Q3245500 property:P641 ?w }
Naoki Hommachi
action filter_type
action find
entity Naoki Hommachi
relation sport
type sport
['Naoki Hommachi', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sport . resource:Naoki_Hommachi property:sport ?w }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3245500,P641,c(Q349))
action filter_type
action find
entity Q3245500
relation P641
type Q349
Which sport was Naoki Hommachi a part of
['Q3245500', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q349 . resource:Q3245500 property:P641 ?w }
association football
Which sport was Naoki Hommachi a part of
association football
action filter_type
action find
entity Naoki Hommachi
relation sport
type sport
['Naoki Hommachi', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sport . resource:Naoki_Hommachi property:sport ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
Which territory is the origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?q WHERE { resource:Q2736 property:P495 ?q . ?q rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:association_football property:country_of_origin ?q . ?q rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
[ANSWER] is the origin of that sport
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?q WHERE { resource:Q2736 property:P495 ?q . ?q rdf:type ontology:Q1496967 }
England
England is the origin of that sport
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:association_football property:country_of_origin ?q . ?q rdf:type ontology:territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21
P163
Q14660
USER
What is associated with that territory ?
(Q21,P163,c(Q14660))
action filter_type
action find
entity Q21
relation P163
type Q14660
['Q21', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { resource:Q21 property:P163 ?h . ?h rdf:type ontology:Q14660 }
England
action filter_type
action find
entity England
relation flag
type flag
['England', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { resource:England property:flag ?h . ?h rdf:type ontology:flag }
[]
flag
Q171117
SYSTEM
flag of England
Q171117
(Q21,P163,c(Q14660))
action filter_type
action find
entity Q21
relation P163
type Q14660
The [ANSWER] is associated with that territory
['Q21', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { resource:Q21 property:P163 ?h . ?h rdf:type ontology:Q14660 }
flag of England
The flag of England is associated with that territory
flag of England
action filter_type
action find
entity England
relation flag
type flag
['England', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { resource:England property:flag ?h . ?h rdf:type ontology:flag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2003
Q14660
USER
And also tell me about Newfoundland and Labrador?
(Q2003,P163,c(Q14660))
action filter_type
action find
entity Q2003
relation P163
type Q14660
['Q2003', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q14660 . resource:Q2003 property:P163 ?l }
Newfoundland and Labrador
action filter_type
action find
entity Newfoundland and Labrador
relation flag
type flag
['Newfoundland and Labrador', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:flag . resource:Newfoundland_and_Labrador property:flag ?l }
[]
flag
Q636719
SYSTEM
Flag of Newfoundland and Labrador
Q636719
(Q2003,P163,c(Q14660))
action filter_type
action find
entity Q2003
relation P163
type Q14660
[ANSWER]
['Q2003', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q14660 . resource:Q2003 property:P163 ?l }
Flag of Newfoundland and Labrador
Flag of Newfoundland and Labrador
action filter_type
action find
entity Newfoundland and Labrador
relation flag
type flag
['Newfoundland and Labrador', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:flag . resource:Newfoundland_and_Labrador property:flag ?l }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q636719 Q1260530
P287
Q502895
USER
Is T. R. Mahalingam the designer of that flag ?
(Q636719,P287,Q1260530)
action is_in
entity Q1260530
action find
entity Q636719
relation P287
['Q636719', 'P287', 'Q1260530']
ASK WHERE { resource:Q636719 property:P287 resource:Q1260530 }
Flag of Newfoundland and Labrador T. R. Mahalingam
action is_in
entity T. R. Mahalingam
action find
entity Flag of Newfoundland and Labrador
relation designer
['Flag of Newfoundland and Labrador', 'designer', 'T. R. Mahalingam']
ASK WHERE { resource:Flag_of_Newfoundland_and_Labrador property:designer resource:T._R._Mahalingam }
[]
common name
SYSTEM
NO
(Q636719,P287,Q1260530)
action is_in
entity Q1260530
action find
entity Q636719
relation P287
[ANSWER]
['Q636719', 'P287', 'Q1260530']
ASK WHERE { resource:Q636719 property:P287 resource:Q1260530 }
No
action is_in
entity T. R. Mahalingam
action find
entity Flag of Newfoundland and Labrador
relation designer
['Flag of Newfoundland and Labrador', 'designer', 'T. R. Mahalingam']
ASK WHERE { resource:Flag_of_Newfoundland_and_Labrador property:designer resource:T._R._Mahalingam }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P941
Q14660 Q14660
USER
Which flags did approximately 1 flag inspire ?
(c(Q14660),P941,c(Q14660))
action approx
action find_tuple_counts
relation P941
type Q14660
type Q14660
value 1
[{'concept': 'Q14660'}, 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { ?h property:P941 ?u . ?h rdf:type ontology:Q14660 . ?u rdf:type ontology:Q14660 } GROUP BY ?h } . FILTER ( ?s = 1 ) }
action approx
action find_tuple_counts
relation inspired by
type flag
type flag
value 1
[{'concept': 'flag'}, 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { ?h property:inspired_by ?u . ?h rdf:type ontology:flag . ?u rdf:type ontology:flag } GROUP BY ?h } . FILTER ( ?s = 1 ) }
[]
flag flag
Q429900 Q604735
SYSTEM
Flag of Saba, Flag of Sint Maarten
Q429900 Q604735
(c(Q14660),P941,c(Q14660))
action approx
action find_tuple_counts
relation P941
type Q14660
type Q14660
value 1
Approximately 1 flag inspired by [ANSWERS]
[{'concept': 'Q14660'}, 'P941', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { ?h property:P941 ?u . ?h rdf:type ontology:Q14660 . ?u rdf:type ontology:Q14660 } GROUP BY ?h } . FILTER ( ?s = 1 ) }
Flag of Saba Flag of Sint Maarten
Approximately 1 flag inspired by Flag of Saba and Flag of Sint Maarten
Flag of Saba Flag of Sint Maarten
action approx
action find_tuple_counts
relation inspired by
type flag
type flag
value 1
[{'concept': 'flag'}, 'inspired by', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { ?h property:inspired_by ?u . ?h rdf:type ontology:flag . ?u rdf:type ontology:flag } GROUP BY ?h } . FILTER ( ?s = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P180
Q15324 Q14660
USER
Which bodies of water are depicted in max number of flags ?
(c(Q14660),P180,Q181476)
action argmax
action find_reverse_tuple_counts
relation P180
type Q15324
type Q14660
[{'concept': 'Q14660'}, 'P180', 'Q181476']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P180 ?f . ?f rdf:type ontology:Q15324 . ?s rdf:type ontology:Q14660 } GROUP BY ?f } } . { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P180 ?m . ?m rdf:type ontology:Q15324 . ?g rdf:type ontology:Q14660 } GROUP BY ?m } . FILTER ( ?d = ?n ) }
action argmax
action find_reverse_tuple_counts
relation depicts
type body of water
type flag
[{'concept': 'flag'}, 'depicts', 'Cotopaxi']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:depicts ?f . ?f rdf:type ontology:body_of_water . ?s rdf:type ontology:flag } GROUP BY ?f } } . { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:depicts ?m . ?m rdf:type ontology:body_of_water . ?g rdf:type ontology:flag } GROUP BY ?m } . FILTER ( ?d = ?n ) }
[]
body of water flag
Q1247
SYSTEM
Caribbean Sea
Q1247
(c(Q14660),P180,Q181476)
action argmax
action find_reverse_tuple_counts
relation P180
type Q15324
type Q14660
[ANSWER] is depicted in max number of flags
[{'concept': 'Q14660'}, 'P180', 'Q181476']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P180 ?f . ?f rdf:type ontology:Q15324 . ?s rdf:type ontology:Q14660 } GROUP BY ?f } } . { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P180 ?m . ?m rdf:type ontology:Q15324 . ?g rdf:type ontology:Q14660 } GROUP BY ?m } . FILTER ( ?d = ?n ) }
Caribbean Sea
Caribbean Sea is depicted in max number of flags
Caribbean Sea
action argmax
action find_reverse_tuple_counts
relation depicts
type body of water
type flag
[{'concept': 'flag'}, 'depicts', 'Cotopaxi']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:depicts ?f . ?f rdf:type ontology:body_of_water . ?s rdf:type ontology:flag } GROUP BY ?f } } . { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:depicts ?m . ?m rdf:type ontology:body_of_water . ?g rdf:type ontology:flag } GROUP BY ?m } . FILTER ( ?d = ?n ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q429900 Q240631
P462
Q1075
USER
How many colors are Flag of Saba and University of Belgrade associated with ?
(Q429900,P462,c(Q1075)) (Q240631,P462,c(Q1075))
action count
action intersection
action filter_type
action find
entity Q429900
relation P462
type Q1075
action filter_type
action find
entity Q240631
relation P462
type Q1075
['Q429900', 'P462', {'concept': 'Q1075'}] ['Q240631', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:Q1075 . resource:Q429900 property:P462 ?m . ?m rdf:type ontology:Q1075 . resource:Q240631 property:P462 ?m }
Flag of Saba University of Belgrade
action count
action intersection
action filter_type
action find
entity Flag of Saba
relation color
type color
action filter_type
action find
entity University of Belgrade
relation color
type color
['Flag of Saba', 'color', {'concept': 'color'}] ['University of Belgrade', 'color', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:color . resource:Flag_of_Saba property:color ?m . ?m rdf:type ontology:color . resource:University_of_Belgrade property:color ?m }
[]
color
SYSTEM
2
Q3142 Q1088
(Q429900,P462,c(Q1075)) (Q240631,P462,c(Q1075))
action count
action intersection
action filter_type
action find
entity Q429900
relation P462
type Q1075
action filter_type
action find
entity Q240631
relation P462
type Q1075
[ANSWER]
['Q429900', 'P462', {'concept': 'Q1075'}] ['Q240631', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:Q1075 . resource:Q429900 property:P462 ?m . ?m rdf:type ontology:Q1075 . resource:Q240631 property:P462 ?m }
red blue
2
action count
action intersection
action filter_type
action find
entity Flag of Saba
relation color
type color
action filter_type
action find
entity University of Belgrade
relation color
type color
['Flag of Saba', 'color', {'concept': 'color'}] ['University of Belgrade', 'color', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:color . resource:Flag_of_Saba property:color ?m . ?m rdf:type ontology:color . resource:University_of_Belgrade property:color ?m }
[]