Simple Question (Direct)
Simple Question
Q8298734
P106
Q12737077
USER
What is the job of Gaston Galpin ?
(Q8298734,P106,c(Q12737077))
action filter_type
action find
entity Q8298734
relation P106
type Q12737077
['Q8298734', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q8298734 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Gaston Galpin
action filter_type
action find
entity Gaston Galpin
relation occupation
type occupation
['Gaston Galpin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Gaston_Galpin property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q8298734,P106,c(Q12737077))
action filter_type
action find
entity Q8298734
relation P106
type Q12737077
The job of Gaston Galpin is a [ANSWER]
['Q8298734', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q8298734 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
politician
The job of Gaston Galpin is a politician
politician
action filter_type
action find
entity Gaston Galpin
relation occupation
type occupation
['Gaston Galpin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Gaston_Galpin property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8298734
P20
Q20667921
USER
Where did the expiration of that person occur ?
(Q82955,P20,c(Q20667921))
action filter_type
action find
entity Q8298734
relation P20
type Q20667921
['Q82955', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q20667921 . resource:Q8298734 property:P20 ?r }
Gaston Galpin
action filter_type
action find
entity Gaston Galpin
relation place of death
type type of french administrative division
['politician', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_french_administrative_division . resource:Gaston_Galpin property:place_of_death ?r }
[]
type of french administrative division
Q181269
SYSTEM
Alençon
Q181269
(Q82955,P20,c(Q20667921))
action filter_type
action find
entity Q8298734
relation P20
type Q20667921
The expiration of that person occurred in [ANSWER]
['Q82955', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q20667921 . resource:Q8298734 property:P20 ?r }
Alençon
The expiration of that person occurred in Alençon
Alençon
action filter_type
action find
entity Gaston Galpin
relation place of death
type type of french administrative division
['politician', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_french_administrative_division . resource:Gaston_Galpin property:place_of_death ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q20667921 Q83620 Q17444909
USER
How many french administrative divisions are around 2 thoroughfares or astronomical object types named after ?
(c(Q83620)|c(Q17444909),P138,c(Q20667921))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q83620
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q17444909
value 2
[[{'concept': 'Q83620'}, {'concept': 'Q17444909'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?d ) WHERE { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:Q83620 ) ( ontology:Q17444909 ) } } GROUP BY ?x } . FILTER ( ?d = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type thoroughfare
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type astronomical object type
value 2
[[{'concept': 'thoroughfare'}, {'concept': 'astronomical object type'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?d ) WHERE { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:thoroughfare ) ( ontology:astronomical_object_type ) } } GROUP BY ?x } . FILTER ( ?d = 2 ) }
[]
type of french administrative division thoroughfare astronomical object type
SYSTEM
2
Q22640 Q22690
(c(Q83620)|c(Q17444909),P138,c(Q20667921))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q83620
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q17444909
value 2
[ANSWER]
[[{'concept': 'Q83620'}, {'concept': 'Q17444909'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?d ) WHERE { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:Q83620 ) ( ontology:Q17444909 ) } } GROUP BY ?x } . FILTER ( ?d = 2 ) }
Thionville Metz
2
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type thoroughfare
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type astronomical object type
value 2
[[{'concept': 'thoroughfare'}, {'concept': 'astronomical object type'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?d ) WHERE { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:thoroughfare ) ( ontology:astronomical_object_type ) } } GROUP BY ?x } . FILTER ( ?d = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q181269
P1376
Q20667921
USER
What have Alençon as their capital ?
(Q181269,P1376,c(Q20667921))
action filter_type
action find
entity Q181269
relation P1376
type Q20667921
['Q181269', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q20667921 . resource:Q181269 property:P1376 ?d }
Alençon
action filter_type
action find
entity Alençon
relation capital of
type type of french administrative division
['Alençon', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:type_of_french_administrative_division . resource:Alençon property:capital_of ?d }
[]
type of french administrative division
Q1724084 Q969511 Q1469266
SYSTEM
canton of Alençon-3, canton of Alençon-2, canton of Alençon-1
Q1724084 Q969511 Q1469266
(Q181269,P1376,c(Q20667921))
action filter_type
action find
entity Q181269
relation P1376
type Q20667921
[ANSWERS] have Alençon as their capital
['Q181269', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q20667921 . resource:Q181269 property:P1376 ?d }
canton of Alençon-3 canton of Alençon-2 canton of Alençon-1
Canton of Alençon-3, canton of Alençon-2 and canton of Alençon-1 have Alençon as their capital
canton of Alençon-3 canton of Alençon-2 canton of Alençon-1
action filter_type
action find
entity Alençon
relation capital of
type type of french administrative division
['Alençon', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:type_of_french_administrative_division . resource:Alençon property:capital_of ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q181269
P276
Q1190554
USER
What is situated at Alençon ?
(c(Q1190554),P276,Q181269)
action filter_type
action find_reverse
entity Q181269
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q181269']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1190554 . ?i property:P276 resource:Q181269 }
Alençon
action filter_type
action find_reverse
entity Alençon
relation location
type event
[{'concept': 'event'}, 'location', 'Alençon']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:event . ?i property:location resource:Alençon }
[]
event
Q23725830
SYSTEM
Nuit debout
Q23725830
(c(Q1190554),P276,Q181269)
action filter_type
action find_reverse
entity Q181269
relation P276
type Q1190554
[ANSWER] is situated at Alençon
[{'concept': 'Q1190554'}, 'P276', 'Q181269']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1190554 . ?i property:P276 resource:Q181269 }
Nuit debout
Nuit debout is situated at Alençon
Nuit debout
action filter_type
action find_reverse
entity Alençon
relation location
type event
[{'concept': 'event'}, 'location', 'Alençon']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:event . ?i property:location resource:Alençon }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q181269
P36
Q20667921
USER
Which french administrative divisions have that one as their administrative centre ?
(c(Q20667921),P36,Q23725830)
action filter_type
action find_reverse
entity Q181269
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q23725830']
SELECT DISTINCT ?k WHERE { ?k property:P36 resource:Q181269 . ?k rdf:type ontology:Q20667921 }
Alençon
action filter_type
action find_reverse
entity Alençon
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Nuit debout']
SELECT DISTINCT ?k WHERE { ?k property:capital resource:Alençon . ?k rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1724084 Q1469266 Q969511
SYSTEM
canton of Alençon-3, canton of Alençon-1, canton of Alençon-2
Q1724084 Q1469266 Q969511
(c(Q20667921),P36,Q23725830)
action filter_type
action find_reverse
entity Q181269
relation P36
type Q20667921
[ANSWERS] have that one as their administrative centre
[{'concept': 'Q20667921'}, 'P36', 'Q23725830']
SELECT DISTINCT ?k WHERE { ?k property:P36 resource:Q181269 . ?k rdf:type ontology:Q20667921 }
canton of Alençon-3 canton of Alençon-1 canton of Alençon-2
Canton of Alençon-3, canton of Alençon-1 and canton of Alençon-2 have that one as their administrative centre
canton of Alençon-3 canton of Alençon-1 canton of Alençon-2
action filter_type
action find_reverse
entity Alençon
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Nuit debout']
SELECT DISTINCT ?k WHERE { ?k property:capital resource:Alençon . ?k rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q181269
P36 P17
Q20667921
USER
Which french administrative divisions have Alençon as their administrative centre and are located in France ?
AND((c(Q20667921),P36,Q181269), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q181269
relation P36
action find_reverse
entity Q142
relation P17
type Q20667921
{'AND': [[{'concept': 'Q20667921'}, 'P36', 'Q181269'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?d WHERE { ?d property:P36 resource:Q181269 . ?d property:P17 resource:Q142 . ?d rdf:type ontology:Q20667921 }
France Alençon
action filter_type
action intersection
action find_reverse
entity Alençon
relation capital
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'capital', 'Alençon'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?d WHERE { ?d property:capital resource:Alençon . ?d property:country resource:France . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1724084 Q969511 Q1469266
SYSTEM
canton of Alençon-3, canton of Alençon-2, canton of Alençon-1
Q1724084 Q969511 Q1469266
AND((c(Q20667921),P36,Q181269), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q181269
relation P36
action find_reverse
entity Q142
relation P17
type Q20667921
[ANSWERS] have Alençon as their administrative centre and are located in France
{'AND': [[{'concept': 'Q20667921'}, 'P36', 'Q181269'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?d WHERE { ?d property:P36 resource:Q181269 . ?d property:P17 resource:Q142 . ?d rdf:type ontology:Q20667921 }
canton of Alençon-3 canton of Alençon-2 canton of Alençon-1
Canton of Alençon-3, canton of Alençon-2 and canton of Alençon-1 have Alençon as their administrative centre and are located in France
canton of Alençon-3 canton of Alençon-2 canton of Alençon-1
action filter_type
action intersection
action find_reverse
entity Alençon
relation capital
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'capital', 'Alençon'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?d WHERE { ?d property:capital resource:Alençon . ?d property:country resource:France . ?d rdf:type ontology:type_of_french_administrative_division }
[]