Simple Question (Direct)
Simple Question
Q516333
P140
Q879146
USER
What is the religious affiliation of Andrew Fournet ?
(Q516333,P140,c(Q879146))
action filter_type
action find
entity Q516333
relation P140
type Q879146
['Q516333', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?i WHERE { resource:Q516333 property:P140 ?i . ?i rdf:type ontology:Q879146 }
Andrew Fournet
action filter_type
action find
entity Andrew Fournet
relation religion
type Christian denomination
['Andrew Fournet', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?i WHERE { resource:Andrew_Fournet property:religion ?i . ?i rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q516333,P140,c(Q879146))
action filter_type
action find
entity Q516333
relation P140
type Q879146
The religious affiliation of Andrew Fournet is a [ANSWER]
['Q516333', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?i WHERE { resource:Q516333 property:P140 ?i . ?i rdf:type ontology:Q879146 }
Roman Catholic Church
The religious affiliation of Andrew Fournet is a Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Andrew Fournet
relation religion
type Christian denomination
['Andrew Fournet', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?i WHERE { resource:Andrew_Fournet property:religion ?i . ?i rdf:type ontology:Christian_denomination }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q516333
P411
Q82799
USER
Which name is held by Andrew Fournet ?
(Q516333,P411,c(Q82799))
action filter_type
action find
entity Q516333
relation P411
type Q82799
['Q516333', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q516333 property:P411 ?k . ?k rdf:type ontology:Q82799 }
Andrew Fournet
action filter_type
action find
entity Andrew Fournet
relation canonization status
type name
['Andrew Fournet', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Andrew_Fournet property:canonization_status ?k . ?k rdf:type ontology:name }
[]
name
Q43115
SYSTEM
saint
Q43115
(Q516333,P411,c(Q82799))
action filter_type
action find
entity Q516333
relation P411
type Q82799
The [ANSWER] is held by Andrew Fournet
['Q516333', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q516333 property:P411 ?k . ?k rdf:type ontology:Q82799 }
saint
The saint is held by Andrew Fournet
saint
action filter_type
action find
entity Andrew Fournet
relation canonization status
type name
['Andrew Fournet', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Andrew_Fournet property:canonization_status ?k . ?k rdf:type ontology:name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P180
Q82799 Q18783400 Q17335294
USER
Which names are depicted in greater number of genres of sculpture and coats of arms than that name ?
(c(Q18783400)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q43115
relation P180
type Q18783400
type Q17335294
[[{'concept': 'Q18783400'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?e > ?j ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P180 resource:Q43115 . { { ?u rdf:type ontology:Q18783400 } UNION { ?u rdf:type ontology:Q17335294 } } } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?e ) WHERE { { ?b property:P180 ?g . ?g rdf:type ontology:Q82799 . ?b rdf:type ontology:Q18783400 } UNION { ?b property:P180 ?g . ?g rdf:type ontology:Q82799 . ?b rdf:type ontology:Q17335294 } } GROUP BY ?g } }
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity saint
relation depicts
type genre of sculpture
type flag or coat of arms
[[{'concept': 'genre of sculpture'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?e > ?j ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:depicts resource:saint . { { ?u rdf:type ontology:genre_of_sculpture } UNION { ?u rdf:type ontology:flag_or_coat_of_arms } } } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?e ) WHERE { { ?b property:depicts ?g . ?g rdf:type ontology:name . ?b rdf:type ontology:genre_of_sculpture } UNION { ?b property:depicts ?g . ?g rdf:type ontology:name . ?b rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?g } }
[]
name genre of sculpture flag or coat of arms
Q726 Q2092297 Q144
SYSTEM
horse, eagle, dog
Q726 Q2092297 Q144
(c(Q18783400)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q43115
relation P180
type Q18783400
type Q17335294
[ANSWERS] are depicted in greater number of genres of sculpture and coats of arms than that name
[[{'concept': 'Q18783400'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?e > ?j ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P180 resource:Q43115 . { { ?u rdf:type ontology:Q18783400 } UNION { ?u rdf:type ontology:Q17335294 } } } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?e ) WHERE { { ?b property:P180 ?g . ?g rdf:type ontology:Q82799 . ?b rdf:type ontology:Q18783400 } UNION { ?b property:P180 ?g . ?g rdf:type ontology:Q82799 . ?b rdf:type ontology:Q17335294 } } GROUP BY ?g } }
horse eagle dog
Horse, eagle and dog are depicted in greater number of genres of sculpture and coats of arms than that name
horse eagle dog
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity saint
relation depicts
type genre of sculpture
type flag or coat of arms
[[{'concept': 'genre of sculpture'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?e > ?j ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:depicts resource:saint . { { ?u rdf:type ontology:genre_of_sculpture } UNION { ?u rdf:type ontology:flag_or_coat_of_arms } } } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?e ) WHERE { { ?b property:depicts ?g . ?g rdf:type ontology:name . ?b rdf:type ontology:genre_of_sculpture } UNION { ?b property:depicts ?g . ?g rdf:type ontology:name . ?b rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?g } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q56061 Q82799
USER
Which names have exactly 1 administrative territories or administrative territories as their toponym ?
(c(Q82799),P138,c(Q15617994)|c(Q56061))
action equal
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q56061
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?f ) WHERE { VALUES ( ?o ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?s rdf:type ?o } GROUP BY ?y } . FILTER ( ?f = 1 ) }
action equal
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type administrative territorial entity
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?f ) WHERE { VALUES ( ?o ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?o } GROUP BY ?y } . FILTER ( ?f = 1 ) }
[]
designation for an administrative territorial entity administrative territorial entity name
Q22922124 Q16877784 Q24229341
SYSTEM
von Mecklenburg-Schwerin, Napoli, Toscano
Q23688105 Q22922124 Q16877784 Q24229341
(c(Q82799),P138,c(Q15617994)|c(Q56061))
action equal
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q56061
value 1
[ANSWERS] have exactly 1 administrative territories or administrative territories as their toponym
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?f ) WHERE { VALUES ( ?o ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?s rdf:type ?o } GROUP BY ?y } . FILTER ( ?f = 1 ) }
de Bragança von Mecklenburg-Schwerin Napoli Toscano
Von Mecklenburg-Schwerin, Napoli and Toscano have exactly 1 administrative territories or administrative territories as their toponym
von Mecklenburg-Schwerin Napoli Toscano
action equal
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type administrative territorial entity
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?f ) WHERE { VALUES ( ?o ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?o } GROUP BY ?y } . FILTER ( ?f = 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P734
Q502895
USER
How many people have that name as their family name ?
(c(Q502895),P734,Q22922124)
[{'concept': 'Q502895'}, 'P734', 'Q22922124']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q101352 resource:Q22922124 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:family_name resource:von_Mecklenburg-Schwerin . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q22922124
SYSTEM
Did you mean von Mecklenburg-Schwerin ?
(c(Q502895),P734,Q22922124) (c(Q502895),P734,Q16877784) (c(Q502895),P734,Q24229341)
[ANSWER]
[{'concept': 'Q502895'}, 'P734', 'Q22922124'] [{'concept': 'Q502895'}, 'P734', 'Q16877784'] [{'concept': 'Q502895'}, 'P734', 'Q24229341']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q101352 resource:Q22922124 . ?z rdf:type ontology:Q502895 }
Did you mean von Mecklenburg-Schwerin ?
von Mecklenburg-Schwerin
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin'] [{'concept': 'common name'}, 'family name', 'Napoli'] [{'concept': 'common name'}, 'family name', 'Toscano']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:family_name resource:von_Mecklenburg-Schwerin . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P734,Q22922124)
[{'concept': 'Q502895'}, 'P734', 'Q22922124']
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin']
[]
SYSTEM
1
Q571387
(c(Q502895),P734,Q22922124)
[ANSWER]
[{'concept': 'Q502895'}, 'P734', 'Q22922124']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q101352 resource:Q22922124 . ?z rdf:type ontology:Q502895 }
Johann VII, Duke of Mecklenburg
1
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:family_name resource:von_Mecklenburg-Schwerin . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q3428119
Q15619164
USER
And how about Retlaw Enterprises?
(Q3428119,P112,c(Q15619164))
action count
action filter_type
action find
entity Q3428119
relation P112
type Q15619164
['Q3428119', 'P112', {'concept': 'Q15619164'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Q3428119 property:P112 ?o . ?o rdf:type ontology:Q15619164 }
Retlaw Enterprises
action count
action filter_type
action find
entity Retlaw Enterprises
relation founder
type abstract being
['Retlaw Enterprises', 'founder', {'concept': 'abstract being'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Retlaw_Enterprises property:founder ?o . ?o rdf:type ontology:abstract_being }
[]
abstract being
SYSTEM
1
(Q3428119,P112,c(Q15619164))
action count
action filter_type
action find
entity Q3428119
relation P112
type Q15619164
[ANSWER]
['Q3428119', 'P112', {'concept': 'Q15619164'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Q3428119 property:P112 ?o . ?o rdf:type ontology:Q15619164 }
1
action count
action filter_type
action find
entity Retlaw Enterprises
relation founder
type abstract being
['Retlaw Enterprises', 'founder', {'concept': 'abstract being'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Retlaw_Enterprises property:founder ?o . ?o rdf:type ontology:abstract_being }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3428119
P112
Q15619164
USER
What is the name of the founder of that organization ?
action filter_type
action find
entity Q3428119
relation P112
type Q15619164
SELECT DISTINCT ?z WHERE { resource:Q3428119 property:P112 ?z . ?z rdf:type ontology:Q15619164 }
Retlaw Enterprises
action filter_type
action find
entity Retlaw Enterprises
relation founder
type abstract being
SELECT DISTINCT ?z WHERE { resource:Retlaw_Enterprises property:founder ?z . ?z rdf:type ontology:abstract_being }
[]
abstract being
Q8704
SYSTEM
Walt Disney
Q8704
action filter_type
action find
entity Q3428119
relation P112
type Q15619164
The name of the founder of that organization is The [ANSWER]
SELECT DISTINCT ?z WHERE { resource:Q3428119 property:P112 ?z . ?z rdf:type ontology:Q15619164 }
Walt Disney
The name of the founder of that organization is The Walt Disney
Walt Disney
action filter_type
action find
entity Retlaw Enterprises
relation founder
type abstract being
SELECT DISTINCT ?z WHERE { resource:Retlaw_Enterprises property:founder ?z . ?z rdf:type ontology:abstract_being }
[]