Simple Question (Direct)
Simple Question
Q1162134
P19
Q56061
USER
Where was Daniel Poirion born ?
(Q1162134,P19,c(Q56061))
action filter_type
action find
entity Q1162134
relation P19
type Q56061
['Q1162134', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q1162134 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Daniel Poirion
action filter_type
action find
entity Daniel Poirion
relation place of birth
type administrative territorial entity
['Daniel Poirion', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Daniel_Poirion property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q41604
SYSTEM
Amiens
Q41604
(Q1162134,P19,c(Q56061))
action filter_type
action find
entity Q1162134
relation P19
type Q56061
Daniel Poirion was born in [ANSWER]
['Q1162134', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q1162134 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Amiens
Daniel Poirion was born in Amiens
Amiens
action filter_type
action find
entity Daniel Poirion
relation place of birth
type administrative territorial entity
['Daniel Poirion', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Daniel_Poirion property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q41604
P6
Q502895
USER
Which person is that administrative territory the head of goverment of ?
(Q41604,P6,c(Q502895))
action filter_type
action find
entity Q41604
relation P6
type Q502895
['Q41604', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q41604 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Amiens
action filter_type
action find
entity Amiens
relation head of government
type common name
['Amiens', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Amiens property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
common name
Q3106193
SYSTEM
Gilles Demailly
Q3106193
(Q41604,P6,c(Q502895))
action filter_type
action find
entity Q41604
relation P6
type Q502895
[ANSWER] is that administrative territory the head of goverment of
['Q41604', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q41604 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Gilles Demailly
Gilles Demailly is that administrative territory the head of goverment of
Gilles Demailly
action filter_type
action find
entity Amiens
relation head of government
type common name
['Amiens', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Amiens property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q871046 Q1162134
P937
Q56061
USER
Which administrative territories are the work locations of Daniel Poirion or Mária Cseh ?
OR((Q1162134,P937,c(Q56061)), (Q871046,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1162134
relation P937
action find
entity Q871046
relation P937
type Q56061
{'OR': [['Q1162134', 'P937', {'concept': 'Q56061'}], ['Q871046', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1162134 property:P937 ?x } UNION { resource:Q871046 property:P937 ?x } } . ?x rdf:type ontology:Q56061 }
Mária Cseh Daniel Poirion
action filter_type
action union
action find
entity Daniel Poirion
relation work location
action find
entity Mária Cseh
relation work location
type administrative territorial entity
{'OR': [['Daniel Poirion', 'work location', {'concept': 'administrative territorial entity'}], ['Mária Cseh', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Daniel_Poirion property:work_location ?x } UNION { resource:Mária_Cseh property:work_location ?x } } . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1289 Q90 Q1781
SYSTEM
Grenoble, Paris, Budapest
Q1289 Q90 Q1781
OR((Q1162134,P937,c(Q56061)), (Q871046,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1162134
relation P937
action find
entity Q871046
relation P937
type Q56061
[ANSWERS] are the work locations of Daniel Poirion or Mária Cseh
{'OR': [['Q1162134', 'P937', {'concept': 'Q56061'}], ['Q871046', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1162134 property:P937 ?x } UNION { resource:Q871046 property:P937 ?x } } . ?x rdf:type ontology:Q56061 }
Grenoble Paris Budapest
Grenoble, Paris and Budapest are the work locations of Daniel Poirion or Mária Cseh
Grenoble Paris Budapest
action filter_type
action union
action find
entity Daniel Poirion
relation work location
action find
entity Mária Cseh
relation work location
type administrative territorial entity
{'OR': [['Daniel Poirion', 'work location', {'concept': 'administrative territorial entity'}], ['Mária Cseh', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Daniel_Poirion property:work_location ?x } UNION { resource:Mária_Cseh property:work_location ?x } } . ?x rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have max number of administrative territories as their base harbour ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?p ) { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?f ) WHERE { ?l property:P532 ?y . ?l rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 } GROUP BY ?l } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?g ) WHERE { ?t rdf:type ontology:Q2235308 . ?c rdf:type ontology:Q56061 . ?t property:P532 ?c } GROUP BY ?t } . FILTER ( ?g = ?p ) }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?p ) { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?f ) WHERE { ?l property:port_of_registry ?y . ?l rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity } GROUP BY ?l } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?g ) WHERE { ?t rdf:type ontology:ship_type . ?c rdf:type ontology:administrative_territorial_entity . ?t property:port_of_registry ?c } GROUP BY ?t } . FILTER ( ?g = ?p ) }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[ANSWER] have max number of administrative territories as their base harbour
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?p ) { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?f ) WHERE { ?l property:P532 ?y . ?l rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 } GROUP BY ?l } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?g ) WHERE { ?t rdf:type ontology:Q2235308 . ?c rdf:type ontology:Q56061 . ?t property:P532 ?c } GROUP BY ?t } . FILTER ( ?g = ?p ) }
MS Arrow
MS Arrow have max number of administrative territories as their base harbour
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?p ) { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?f ) WHERE { ?l property:port_of_registry ?y . ?l rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity } GROUP BY ?l } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?g ) WHERE { ?t rdf:type ontology:ship_type . ?c rdf:type ontology:administrative_territorial_entity . ?t property:port_of_registry ?c } GROUP BY ?t } . FILTER ( ?g = ?p ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q11707059 Q18569
P532
Q56061
USER
Is Douglas the port of registry of that ship type ?
(Q11707059,P532,Q18569)
action is_in
entity Q18569
action find
entity Q11707059
relation P532
['Q11707059', 'P532', 'Q18569']
ASK WHERE { resource:Q11707059 property:P532 resource:Q18569 }
MS Arrow Douglas
action is_in
entity Douglas
action find
entity MS Arrow
relation port of registry
['MS Arrow', 'port of registry', 'Douglas']
ASK WHERE { resource:MS_Arrow property:port_of_registry resource:Douglas }
[]
administrative territorial entity
SYSTEM
YES
(Q11707059,P532,Q18569)
action is_in
entity Q18569
action find
entity Q11707059
relation P532
[ANSWER]
['Q11707059', 'P532', 'Q18569']
ASK WHERE { resource:Q11707059 property:P532 resource:Q18569 }
Yes
action is_in
entity Douglas
action find
entity MS Arrow
relation port of registry
['MS Arrow', 'port of registry', 'Douglas']
ASK WHERE { resource:MS_Arrow property:port_of_registry resource:Douglas }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11707059
P127
Q43229
USER
Who owns that ship type ?
action filter_type
action find
entity Q11707059
relation P127
type Q43229
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q43229 . resource:Q11707059 property:P127 ?n }
MS Arrow
action filter_type
action find
entity MS Arrow
relation owned by
type organization
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:organization . resource:MS_Arrow property:owned_by ?n }
[]
organization
Q7442038
SYSTEM
Seatruck Ferries
Q7442038
action filter_type
action find
entity Q11707059
relation P127
type Q43229
[ANSWER] owns that ship type
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q43229 . resource:Q11707059 property:P127 ?n }
Seatruck Ferries
Seatruck Ferries owns that ship type
Seatruck Ferries
action filter_type
action find
entity MS Arrow
relation owned by
type organization
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:organization . resource:MS_Arrow property:owned_by ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P237
Q17335294
USER
Which coat of arms serves as the ensign for Paris ?
(Q90,P237,c(Q17335294))
action filter_type
action find
entity Q90
relation P237
type Q17335294
['Q90', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?d WHERE { resource:Q90 property:P237 ?d . ?d rdf:type ontology:Q17335294 }
Paris
action filter_type
action find
entity Paris
relation coat of arms
type flag or coat of arms
['Paris', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?d WHERE { resource:Paris property:coat_of_arms ?d . ?d rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q1925366
SYSTEM
coat of arms of Paris
Q1925366
(Q90,P237,c(Q17335294))
action filter_type
action find
entity Q90
relation P237
type Q17335294
The [ANSWER] serves as the ensign for Paris
['Q90', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?d WHERE { resource:Q90 property:P237 ?d . ?d rdf:type ontology:Q17335294 }
coat of arms of Paris
The coat of arms of Paris serves as the ensign for Paris
coat of arms of Paris
action filter_type
action find
entity Paris
relation coat of arms
type flag or coat of arms
['Paris', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?d WHERE { resource:Paris property:coat_of_arms ?d . ?d rdf:type ontology:flag_or_coat_of_arms }
[]