Simple Question (Direct)
Simple Question
Q3167042
P410
Q4189293
USER
What is the title conferred upon Jean-Louis du Temple de Rougemont ?
(Q3167042,P410,c(Q4189293))
action filter_type
action find
entity Q3167042
relation P410
type Q4189293
['Q3167042', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?q WHERE { resource:Q3167042 property:P410 ?q . ?q rdf:type ontology:Q4189293 }
Jean-Louis du Temple de Rougemont
action filter_type
action find
entity Jean-Louis du Temple de Rougemont
relation military rank
type title
['Jean-Louis du Temple de Rougemont', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?q WHERE { resource:Jean-Louis_du_Temple_de_Rougemont property:military_rank ?q . ?q rdf:type ontology:title }
[]
title
Q3123081
SYSTEM
général de corps d'armée
Q3123081
(Q3167042,P410,c(Q4189293))
action filter_type
action find
entity Q3167042
relation P410
type Q4189293
The title conferred upon Jean-Louis du Temple de Rougemont is a [ANSWER]
['Q3167042', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?q WHERE { resource:Q3167042 property:P410 ?q . ?q rdf:type ontology:Q4189293 }
général de corps d'armée
The title conferred upon Jean-Louis du Temple de Rougemont is a général de corps d'armée
général de corps d'armée
action filter_type
action find
entity Jean-Louis du Temple de Rougemont
relation military rank
type title
['Jean-Louis du Temple de Rougemont', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?q WHERE { resource:Jean-Louis_du_Temple_de_Rougemont property:military_rank ?q . ?q rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3167042
P69
Q1935049
USER
Which military school is the alma mater of that person ?
(Q3123081,P69,c(Q1935049))
action filter_type
action find
entity Q3167042
relation P69
type Q1935049
['Q3123081', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?z WHERE { resource:Q3167042 property:P69 ?z . ?z rdf:type ontology:Q1935049 }
Jean-Louis du Temple de Rougemont
action filter_type
action find
entity Jean-Louis du Temple de Rougemont
relation educated at
type military school
["général de corps d'armée", 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?z WHERE { resource:Jean-Louis_du_Temple_de_Rougemont property:educated_at ?z . ?z rdf:type ontology:military_school }
[]
military school
Q1132066
SYSTEM
Ecole Spéciale Militaire de Saint-Cyr
Q1132066
(Q3123081,P69,c(Q1935049))
action filter_type
action find
entity Q3167042
relation P69
type Q1935049
[ANSWER] is the alma mater of that person
['Q3123081', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?z WHERE { resource:Q3167042 property:P69 ?z . ?z rdf:type ontology:Q1935049 }
Ecole Spéciale Militaire de Saint-Cyr
Ecole Spéciale Militaire de Saint-Cyr is the alma mater of that person
Ecole Spéciale Militaire de Saint-Cyr
action filter_type
action find
entity Jean-Louis du Temple de Rougemont
relation educated at
type military school
["général de corps d'armée", 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?z WHERE { resource:Jean-Louis_du_Temple_de_Rougemont property:educated_at ?z . ?z rdf:type ontology:military_school }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do approximately 1540 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1540
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?z ) WHERE { ?r property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?z = 1540 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1540
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?z ) WHERE { ?r property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?z = 1540 ) }
[]
musical instrument common name
SYSTEM
8
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1540
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?z ) WHERE { ?r property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?z = 1540 ) }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
8
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1540
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?z ) WHERE { ?r property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?z = 1540 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1132066
P108
Q502895
USER
Which person works for Ecole Spéciale Militaire de Saint-Cyr ?
(c(Q502895),P108,Q1132066)
action filter_type
action find_reverse
entity Q1132066
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q1132066']
SELECT DISTINCT ?a WHERE { ?a property:P108 resource:Q1132066 . ?a rdf:type ontology:Q502895 }
Ecole Spéciale Militaire de Saint-Cyr
action filter_type
action find_reverse
entity Ecole Spéciale Militaire de Saint-Cyr
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Ecole Spéciale Militaire de Saint-Cyr']
SELECT DISTINCT ?a WHERE { ?a property:employer resource:Ecole_Spéciale_Militaire_de_Saint-Cyr . ?a rdf:type ontology:common_name }
[]
common name
Q3068663
SYSTEM
Ferdinand Wachsmuth
Q3068663
(c(Q502895),P108,Q1132066)
action filter_type
action find_reverse
entity Q1132066
relation P108
type Q502895
[ANSWER] works for Ecole Spéciale Militaire de Saint-Cyr
[{'concept': 'Q502895'}, 'P108', 'Q1132066']
SELECT DISTINCT ?a WHERE { ?a property:P108 resource:Q1132066 . ?a rdf:type ontology:Q502895 }
Ferdinand Wachsmuth
Ferdinand Wachsmuth works for Ecole Spéciale Militaire de Saint-Cyr
Ferdinand Wachsmuth
action filter_type
action find_reverse
entity Ecole Spéciale Militaire de Saint-Cyr
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Ecole Spéciale Militaire de Saint-Cyr']
SELECT DISTINCT ?a WHERE { ?a property:employer resource:Ecole_Spéciale_Militaire_de_Saint-Cyr . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1132066
P112
Q502895
USER
What is the name of the founder of Ecole Spéciale Militaire de Saint-Cyr ?
(Q1132066,P112,c(Q502895))
action filter_type
action find
entity Q1132066
relation P112
type Q502895
['Q1132066', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1132066 property:P112 ?f . ?f rdf:type ontology:Q502895 }
Ecole Spéciale Militaire de Saint-Cyr
action filter_type
action find
entity Ecole Spéciale Militaire de Saint-Cyr
relation founder
type common name
['Ecole Spéciale Militaire de Saint-Cyr', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Ecole_Spéciale_Militaire_de_Saint-Cyr property:founder ?f . ?f rdf:type ontology:common_name }
[]
common name
Q517
SYSTEM
Napoleon
Q517
(Q1132066,P112,c(Q502895))
action filter_type
action find
entity Q1132066
relation P112
type Q502895
The name of the founder of Ecole Spéciale Militaire de Saint-Cyr is named [ANSWER]
['Q1132066', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1132066 property:P112 ?f . ?f rdf:type ontology:Q502895 }
Napoleon
The name of the founder of Ecole Spéciale Militaire de Saint-Cyr is named Napoleon
Napoleon
action filter_type
action find
entity Ecole Spéciale Militaire de Saint-Cyr
relation founder
type common name
['Ecole Spéciale Militaire de Saint-Cyr', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Ecole_Spéciale_Militaire_de_Saint-Cyr property:founder ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q517
P21 P22
Q502895
USER
Which people have Napoleon as a parent and have the gender as male ?
AND((c(Q502895),P22,Q517), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q517
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q517'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P22 resource:Q517 . ?h property:P21 resource:Q6581097 }
male Napoleon
action filter_type
action intersection
action find_reverse
entity Napoleon
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Napoleon'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:father resource:Napoleon . ?h property:gender resource:male }
[]
common name
Q1332164 Q7723 Q435375 Q90227 Q1390993
SYSTEM
Jules Barthélemy-Saint-Hilaire, Napoleon II, Count Alexandre Joseph Colonna-Walewski, Eugen Megerle von Mühlfeld, Charles Léon
Q1332164 Q7723 Q435375 Q90227 Q1390993
AND((c(Q502895),P22,Q517), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q517
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Napoleon as a parent and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q517'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P22 resource:Q517 . ?h property:P21 resource:Q6581097 }
Jules Barthélemy-Saint-Hilaire Napoleon II Count Alexandre Joseph Colonna-Walewski Eugen Megerle von Mühlfeld Charles Léon
Jules Barthélemy-Saint-Hilaire, Napoleon II, Count Alexandre Joseph Colonna-Walewski, Eugen Megerle von Mühlfeld and Charles Léon have Napoleon as a parent and have the gender as male
Jules Barthélemy-Saint-Hilaire Napoleon II Count Alexandre Joseph Colonna-Walewski Eugen Megerle von Mühlfeld Charles Léon
action filter_type
action intersection
action find_reverse
entity Napoleon
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Napoleon'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:father resource:Napoleon . ?h property:gender resource:male }
[]