Simple Question (Direct)
Simple Question
Q726511
P166
Q618779
USER
What was awarded to Charles-Frédéric Rau ?
(Q726511,P166,c(Q618779))
action filter_type
action find
entity Q726511
relation P166
type Q618779
['Q726511', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?k WHERE { resource:Q726511 property:P166 ?k . ?k rdf:type ontology:Q618779 }
Charles-Frédéric Rau
action filter_type
action find
entity Charles-Frédéric Rau
relation award received
type award
['Charles-Frédéric Rau', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?k WHERE { resource:Charles-Frédéric_Rau property:award_received ?k . ?k rdf:type ontology:award }
[]
award
Q10855195
SYSTEM
Officer of the Legion of Honour
Q10855195
(Q726511,P166,c(Q618779))
action filter_type
action find
entity Q726511
relation P166
type Q618779
France [ANSWER] was awarded to Charles-Frédéric Rau
['Q726511', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?k WHERE { resource:Q726511 property:P166 ?k . ?k rdf:type ontology:Q618779 }
Officer of the Legion of Honour
France Officer of the Legion of Honour was awarded to Charles-Frédéric Rau
Officer of the Legion of Honour
action filter_type
action find
entity Charles-Frédéric Rau
relation award received
type award
['Charles-Frédéric Rau', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?k WHERE { resource:Charles-Frédéric_Rau property:award_received ?k . ?k rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q726511
P21
Q290
USER
What is the sex of Charles-Frédéric Rau ?
(Q726511,P21,c(Q290))
action filter_type
action find
entity Q726511
relation P21
type Q290
['Q726511', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q726511 property:P21 ?g . ?g rdf:type ontology:Q290 }
Charles-Frédéric Rau
action filter_type
action find
entity Charles-Frédéric Rau
relation gender
type sex
['Charles-Frédéric Rau', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Charles-Frédéric_Rau property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q726511,P21,c(Q290))
action filter_type
action find
entity Q726511
relation P21
type Q290
The sex of Charles-Frédéric Rau is a [ANSWER]
['Q726511', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q726511 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
The sex of Charles-Frédéric Rau is a male
male
action filter_type
action find
entity Charles-Frédéric Rau
relation gender
type sex
['Charles-Frédéric Rau', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Charles-Frédéric_Rau property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1508965
Q290
USER
And also tell me about Georges Kahhalé Zouhaïraty?
(Q1508965,P21,c(Q290))
action filter_type
action find
entity Q1508965
relation P21
type Q290
['Q1508965', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1508965 property:P21 ?l . ?l rdf:type ontology:Q290 }
Georges Kahhalé Zouhaïraty
action filter_type
action find
entity Georges Kahhalé Zouhaïraty
relation gender
type sex
['Georges Kahhalé Zouhaïraty', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Georges_Kahhalé_Zouhaïraty property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1508965,P21,c(Q290))
action filter_type
action find
entity Q1508965
relation P21
type Q290
[ANSWER]
['Q1508965', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1508965 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Georges Kahhalé Zouhaïraty
relation gender
type sex
['Georges Kahhalé Zouhaïraty', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Georges_Kahhalé_Zouhaïraty property:gender ?l . ?l rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
How many sexes are the sex of approximately the same number of people as that sex ?
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Q6581097 property:P21 ?b . ?b rdf:type ontology:Q290 } } . FILTER ( ?z = ?m ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?z ) WHERE { ?s property:P21 ?y . ?s rdf:type ontology:Q502895 . ?y rdf:type ontology:Q290 } GROUP BY ?y } }
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:male property:gender ?b . ?b rdf:type ontology:sex } } . FILTER ( ?z = ?m ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?z ) WHERE { ?s property:gender ?y . ?s rdf:type ontology:common_name . ?y rdf:type ontology:sex } GROUP BY ?y } }
[]
sex common name
SYSTEM
1
Q6581097
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Q6581097 property:P21 ?b . ?b rdf:type ontology:Q290 } } . FILTER ( ?z = ?m ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?z ) WHERE { ?s property:P21 ?y . ?s rdf:type ontology:Q502895 . ?y rdf:type ontology:Q290 } GROUP BY ?y } }
male
1
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:male property:gender ?b . ?b rdf:type ontology:sex } } . FILTER ( ?z = ?m ) . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?z ) WHERE { ?s property:gender ?y . ?s rdf:type ontology:common_name . ?y rdf:type ontology:sex } GROUP BY ?y } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q10855195 Q13501083
P166
Q502895
USER
How many people were awarded with Officer of the Legion of Honour and Knight of the Order of St. Gregory the Great ?
(c(Q502895),P166,Q10855195) (c(Q502895),P166,Q13501083)
action count
action intersection
action filter_type
action find_reverse
entity Q10855195
relation P166
type Q502895
action filter_type
action find_reverse
entity Q13501083
relation P166
type Q502895
[{'concept': 'Q502895'}, 'P166', 'Q10855195'] [{'concept': 'Q502895'}, 'P166', 'Q13501083']
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:P166 resource:Q10855195 . ?k rdf:type ontology:Q502895 . ?k property:P166 resource:Q13501083 . ?k rdf:type ontology:Q502895 }
Officer of the Legion of Honour Knight of the Order of St. Gregory the Great
action count
action intersection
action filter_type
action find_reverse
entity Officer of the Legion of Honour
relation award received
type common name
action filter_type
action find_reverse
entity Knight of the Order of St. Gregory the Great
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'Officer of the Legion of Honour'] [{'concept': 'common name'}, 'award received', 'Knight of the Order of St. Gregory the Great']
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:award_received resource:Officer_of_the_Legion_of_Honour . ?k rdf:type ontology:common_name . ?k property:award_received resource:Knight_of_the_Order_of_St._Gregory_the_Great . ?k rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q1750541 Q289570
(c(Q502895),P166,Q10855195) (c(Q502895),P166,Q13501083)
action count
action intersection
action filter_type
action find_reverse
entity Q10855195
relation P166
type Q502895
action filter_type
action find_reverse
entity Q13501083
relation P166
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P166', 'Q10855195'] [{'concept': 'Q502895'}, 'P166', 'Q13501083']
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:P166 resource:Q10855195 . ?k rdf:type ontology:Q502895 . ?k property:P166 resource:Q13501083 . ?k rdf:type ontology:Q502895 }
Walter Annenberg Etienne Constantin de Gerlache
2
action count
action intersection
action filter_type
action find_reverse
entity Officer of the Legion of Honour
relation award received
type common name
action filter_type
action find_reverse
entity Knight of the Order of St. Gregory the Great
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'Officer of the Legion of Honour'] [{'concept': 'common name'}, 'award received', 'Knight of the Order of St. Gregory the Great']
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:award_received resource:Officer_of_the_Legion_of_Honour . ?k rdf:type ontology:common_name . ?k property:award_received resource:Knight_of_the_Order_of_St._Gregory_the_Great . ?k rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2748253 Q726511
P20
Q56061
USER
Which administrative territories did the expiration of Charles-Frédéric Rau or Tjerk Hiddes de Vries occur ?
OR((Q726511,P20,c(Q56061)), (Q2748253,P20,c(Q56061)))
action filter_type
action union
action find
entity Q726511
relation P20
action find
entity Q2748253
relation P20
type Q56061
{'OR': [['Q726511', 'P20', {'concept': 'Q56061'}], ['Q2748253', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?u ) { ( resource:Q2748253 ) ( resource:Q726511 ) } . ?u property:P20 ?y } . ?y rdf:type ontology:Q56061 }
Tjerk Hiddes de Vries Charles-Frédéric Rau
action filter_type
action union
action find
entity Charles-Frédéric Rau
relation place of death
action find
entity Tjerk Hiddes de Vries
relation place of death
type administrative territorial entity
{'OR': [['Charles-Frédéric Rau', 'place of death', {'concept': 'administrative territorial entity'}], ['Tjerk Hiddes de Vries', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?u ) { ( resource:Tjerk_Hiddes_de_Vries ) ( resource:Charles-Frédéric_Rau ) } . ?u property:place_of_death ?y } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q10084 Q90
SYSTEM
Vlissingen, Paris
Q10084 Q90
OR((Q726511,P20,c(Q56061)), (Q2748253,P20,c(Q56061)))
action filter_type
action union
action find
entity Q726511
relation P20
action find
entity Q2748253
relation P20
type Q56061
The expiration of Charles-Frédéric Rau or Tjerk Hiddes de Vries occurred in [ANSWERS]
{'OR': [['Q726511', 'P20', {'concept': 'Q56061'}], ['Q2748253', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?u ) { ( resource:Q2748253 ) ( resource:Q726511 ) } . ?u property:P20 ?y } . ?y rdf:type ontology:Q56061 }
Vlissingen Paris
The expiration of Charles-Frédéric Rau or Tjerk Hiddes de Vries occurred in Vlissingen and Paris
Vlissingen Paris
action filter_type
action union
action find
entity Charles-Frédéric Rau
relation place of death
action find
entity Tjerk Hiddes de Vries
relation place of death
type administrative territorial entity
{'OR': [['Charles-Frédéric Rau', 'place of death', {'concept': 'administrative territorial entity'}], ['Tjerk Hiddes de Vries', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?u ) { ( resource:Tjerk_Hiddes_de_Vries ) ( resource:Charles-Frédéric_Rau ) } . ?u property:place_of_death ?y } . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have around 3 administrative territories as registry port ?
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?p ) WHERE { ?h property:P532 ?s . ?h rdf:type ontology:Q2235308 . ?s rdf:type ontology:Q56061 } GROUP BY ?h } . FILTER ( ?p = 3 ) }
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?p ) WHERE { ?h property:port_of_registry ?s . ?h rdf:type ontology:ship_type . ?s rdf:type ontology:administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?p = 3 ) }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[ANSWER] have around 3 administrative territories as registry port
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?p ) WHERE { ?h property:P532 ?s . ?h rdf:type ontology:Q2235308 . ?s rdf:type ontology:Q56061 } GROUP BY ?h } . FILTER ( ?p = 3 ) }
MS Arrow
MS Arrow have around 3 administrative territories as registry port
MS Arrow
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?p ) WHERE { ?h property:port_of_registry ?s . ?h rdf:type ontology:ship_type . ?s rdf:type ontology:administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?p = 3 ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11707059 Q1770
P532
Q56061
USER
Is Tallinn the port of registry of MS Arrow ?
(Q11707059,P532,Q1770)
action is_in
entity Q1770
action find
entity Q11707059
relation P532
['Q11707059', 'P532', 'Q1770']
ASK WHERE { resource:Q11707059 property:P532 resource:Q1770 }
MS Arrow Tallinn
action is_in
entity Tallinn
action find
entity MS Arrow
relation port of registry
['MS Arrow', 'port of registry', 'Tallinn']
ASK WHERE { resource:MS_Arrow property:port_of_registry resource:Tallinn }
[]
administrative territorial entity
SYSTEM
YES
(Q11707059,P532,Q1770)
action is_in
entity Q1770
action find
entity Q11707059
relation P532
[ANSWER]
['Q11707059', 'P532', 'Q1770']
ASK WHERE { resource:Q11707059 property:P532 resource:Q1770 }
Yes
action is_in
entity Tallinn
action find
entity MS Arrow
relation port of registry
['MS Arrow', 'port of registry', 'Tallinn']
ASK WHERE { resource:MS_Arrow property:port_of_registry resource:Tallinn }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16226622 Q2748253
P19 P20
Q56061
USER
Which administrative territories did Tjerk Hiddes de Vries die or are the birthplace of Carolina Moscheni ?
OR((Q2748253,P20,c(Q56061)), (Q16226622,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2748253
relation P20
action find
entity Q16226622
relation P19
type Q56061
{'OR': [['Q2748253', 'P20', {'concept': 'Q56061'}], ['Q16226622', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q2748253 property:P20 ?k } UNION { resource:Q16226622 property:P19 ?k } } . ?k rdf:type ontology:Q56061 }
Carolina Moscheni Tjerk Hiddes de Vries
action filter_type
action union
action find
entity Tjerk Hiddes de Vries
relation place of death
action find
entity Carolina Moscheni
relation place of birth
type administrative territorial entity
{'OR': [['Tjerk Hiddes de Vries', 'place of death', {'concept': 'administrative territorial entity'}], ['Carolina Moscheni', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Tjerk_Hiddes_de_Vries property:place_of_death ?k } UNION { resource:Carolina_Moscheni property:place_of_birth ?k } } . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q10084 Q628
SYSTEM
Vlissingen, Bergamo
Q10084 Q628
OR((Q2748253,P20,c(Q56061)), (Q16226622,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2748253
relation P20
action find
entity Q16226622
relation P19
type Q56061
Tjerk Hiddes de Vries died or are the birthplace of Carolina Moscheni in [ANSWERS]
{'OR': [['Q2748253', 'P20', {'concept': 'Q56061'}], ['Q16226622', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q2748253 property:P20 ?k } UNION { resource:Q16226622 property:P19 ?k } } . ?k rdf:type ontology:Q56061 }
Vlissingen Bergamo
Tjerk Hiddes de Vries died or are the birthplace of Carolina Moscheni in Vlissingen and Bergamo
Vlissingen Bergamo
action filter_type
action union
action find
entity Tjerk Hiddes de Vries
relation place of death
action find
entity Carolina Moscheni
relation place of birth
type administrative territorial entity
{'OR': [['Tjerk Hiddes de Vries', 'place of death', {'concept': 'administrative territorial entity'}], ['Carolina Moscheni', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Tjerk_Hiddes_de_Vries property:place_of_death ?k } UNION { resource:Carolina_Moscheni property:place_of_birth ?k } } . ?k rdf:type ontology:administrative_territorial_entity }
[]