Simple Question (Direct)
Simple Question
Q333608
P17
Q15617994
USER
Which administrative territory is Buis-les-Baronnies located in ?
(Q333608,P17,c(Q15617994))
action filter_type
action find
entity Q333608
relation P17
type Q15617994
['Q333608', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q333608 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Buis-les-Baronnies
action filter_type
action find
entity Buis-les-Baronnies
relation country
type designation for an administrative territorial entity
['Buis-les-Baronnies', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Buis-les-Baronnies property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q333608,P17,c(Q15617994))
action filter_type
action find
entity Q333608
relation P17
type Q15617994
Which administrative territory is Buis-les-Baronnies located in
['Q333608', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q333608 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
France
Which administrative territory is Buis-les-Baronnies located in
France
action filter_type
action find
entity Buis-les-Baronnies
relation country
type designation for an administrative territorial entity
['Buis-les-Baronnies', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Buis-les-Baronnies property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q333608
P1376
Q20667921
USER
Which french administrative division has Buis-les-Baronnies has its first city ?
(Q333608,P1376,c(Q20667921))
action filter_type
action find
entity Q333608
relation P1376
type Q20667921
['Q333608', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q333608 property:P1376 ?g . ?g rdf:type ontology:Q20667921 }
Buis-les-Baronnies
action filter_type
action find
entity Buis-les-Baronnies
relation capital of
type type of french administrative division
['Buis-les-Baronnies', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Buis-les-Baronnies property:capital_of ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1724648
SYSTEM
canton of Buis-les-Baronnies
Q1724648
(Q333608,P1376,c(Q20667921))
action filter_type
action find
entity Q333608
relation P1376
type Q20667921
Which french administrative division has Buis-les-Baronnies has its first city
['Q333608', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q333608 property:P1376 ?g . ?g rdf:type ontology:Q20667921 }
canton of Buis-les-Baronnies
Which french administrative division has Buis-les-Baronnies has its first city
canton of Buis-les-Baronnies
action filter_type
action find
entity Buis-les-Baronnies
relation capital of
type type of french administrative division
['Buis-les-Baronnies', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Buis-les-Baronnies property:capital_of ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q376799 Q83620
USER
Which administrative territories are exactly 1 transport infrastructures or thoroughfares named after ?
(c(Q376799)|c(Q83620),P138,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q376799
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q83620
value 1
[[{'concept': 'Q376799'}, {'concept': 'Q83620'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?o WHERE { { ?r property:P138 ?o . ?r rdf:type ontology:Q376799 . ?o rdf:type ontology:Q15617994 } UNION { ?r property:P138 ?o . ?o rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q83620 } } GROUP BY ?o } . FILTER ( ?a = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type transport infrastructure
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type thoroughfare
value 1
[[{'concept': 'transport infrastructure'}, {'concept': 'thoroughfare'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?o WHERE { { ?r property:named_after ?o . ?r rdf:type ontology:transport_infrastructure . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:named_after ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:thoroughfare } } GROUP BY ?o } . FILTER ( ?a = 1 ) }
[]
designation for an administrative territorial entity transport infrastructure thoroughfare
Q236 Q13645 Q46130
SYSTEM
Montenegro, Tempio Pausania, Rhône
Q236 Q46130 Q478142 Q13645 Q155019 Q107426 Q333389
(c(Q376799)|c(Q83620),P138,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q376799
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q83620
value 1
[ANSWERS] are exactly 1 transport infrastructures or thoroughfares named after
[[{'concept': 'Q376799'}, {'concept': 'Q83620'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?o WHERE { { ?r property:P138 ?o . ?r rdf:type ontology:Q376799 . ?o rdf:type ontology:Q15617994 } UNION { ?r property:P138 ?o . ?o rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q83620 } } GROUP BY ?o } . FILTER ( ?a = 1 ) }
Montenegro Rhône Schierstein Tempio Pausania Duchy of Lorraine Anjou Palau
Montenegro, Tempio Pausania and Rhône are exactly 1 transport infrastructures or thoroughfares named after
Montenegro Tempio Pausania Rhône
action equal
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type transport infrastructure
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type thoroughfare
value 1
[[{'concept': 'transport infrastructure'}, {'concept': 'thoroughfare'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?o WHERE { { ?r property:named_after ?o . ?r rdf:type ontology:transport_infrastructure . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:named_after ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:thoroughfare } } GROUP BY ?o } . FILTER ( ?a = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q236 Q13645 Q46130
P138
Q83620
USER
Which thoroughfares have those administrative territories as their toponym ?
(c(Q83620),P138,Q236) (c(Q83620),P138,Q13645) (c(Q83620),P138,Q46130)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q83620
[{'concept': 'Q83620'}, 'P138', 'Q236'] [{'concept': 'Q83620'}, 'P138', 'Q13645'] [{'concept': 'Q83620'}, 'P138', 'Q46130']
SELECT DISTINCT ?n WHERE { ?n property:P138 ?s . ?n rdf:type ontology:Q83620 . VALUES ( ?s ) { ( resource:Q236 ) ( resource:Q46130 ) ( resource:Q478142 ) } }
Montenegro Tempio Pausania Rhône
action filter_type
action find_reverse
entity prev_answer
relation named after
type thoroughfare
[{'concept': 'thoroughfare'}, 'named after', 'Montenegro'] [{'concept': 'thoroughfare'}, 'named after', 'Tempio Pausania'] [{'concept': 'thoroughfare'}, 'named after', 'Rhône']
SELECT DISTINCT ?n WHERE { ?n property:named_after ?s . ?n rdf:type ontology:thoroughfare . VALUES ( ?s ) { ( resource:Montenegro ) ( resource:Rhône ) ( resource:Schierstein ) } }
[]
thoroughfare
Q3368160 Q803165 Q1559
SYSTEM
passage du Montenegro, Sassari-Tempio-Palau railway, Rhônexpress
Q3368160 Q803165 Q1559
(c(Q83620),P138,Q236) (c(Q83620),P138,Q13645) (c(Q83620),P138,Q46130)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q83620
[ANSWERS] have those administrative territories as their toponym
[{'concept': 'Q83620'}, 'P138', 'Q236'] [{'concept': 'Q83620'}, 'P138', 'Q13645'] [{'concept': 'Q83620'}, 'P138', 'Q46130']
SELECT DISTINCT ?n WHERE { ?n property:P138 ?s . ?n rdf:type ontology:Q83620 . VALUES ( ?s ) { ( resource:Q236 ) ( resource:Q46130 ) ( resource:Q478142 ) } }
passage du Montenegro Sassari-Tempio-Palau railway Rhônexpress
Passage du Montenegro, Sassari-Tempio-Palau railway and Rhônexpress have those administrative territories as their toponym
passage du Montenegro Sassari-Tempio-Palau railway Rhônexpress
action filter_type
action find_reverse
entity prev_answer
relation named after
type thoroughfare
[{'concept': 'thoroughfare'}, 'named after', 'Montenegro'] [{'concept': 'thoroughfare'}, 'named after', 'Tempio Pausania'] [{'concept': 'thoroughfare'}, 'named after', 'Rhône']
SELECT DISTINCT ?n WHERE { ?n property:named_after ?s . ?n rdf:type ontology:thoroughfare . VALUES ( ?s ) { ( resource:Montenegro ) ( resource:Rhône ) ( resource:Schierstein ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3368160 Q803165 Q1559
P138
Q15617994
USER
Which administrative territories are the etymology of those thoroughfares ?
(Q3368160,P138,c(Q15617994)) (Q803165,P138,c(Q15617994)) (Q1559,P138,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P138
type Q15617994
['Q3368160', 'P138', {'concept': 'Q15617994'}] ['Q803165', 'P138', {'concept': 'Q15617994'}] ['Q1559', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?o ) { ( resource:Q3368160 ) ( resource:Q803165 ) ( resource:Q1559 ) } . ?o property:P138 ?m . ?m rdf:type ontology:Q15617994 }
passage du Montenegro Sassari-Tempio-Palau railway Rhônexpress
action filter_type
action find
entity prev_answer
relation named after
type designation for an administrative territorial entity
['passage du Montenegro', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['Sassari-Tempio-Palau railway', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['Rhônexpress', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?o ) { ( resource:passage_du_Montenegro ) ( resource:Sassari-Tempio-Palau_railway ) ( resource:Rhônexpress ) } . ?o property:named_after ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q236 Q13645 Q46130
SYSTEM
Montenegro, Tempio Pausania, Rhône
Q236 Q333389 Q13645 Q46130
(Q3368160,P138,c(Q15617994)) (Q803165,P138,c(Q15617994)) (Q1559,P138,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P138
type Q15617994
[ANSWERS] are the etymology of those thoroughfares
['Q3368160', 'P138', {'concept': 'Q15617994'}] ['Q803165', 'P138', {'concept': 'Q15617994'}] ['Q1559', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?o ) { ( resource:Q3368160 ) ( resource:Q803165 ) ( resource:Q1559 ) } . ?o property:P138 ?m . ?m rdf:type ontology:Q15617994 }
Montenegro Palau Tempio Pausania Rhône
Montenegro, Tempio Pausania and Rhône are the etymology of those thoroughfares
Montenegro Tempio Pausania Rhône
action filter_type
action find
entity prev_answer
relation named after
type designation for an administrative territorial entity
['passage du Montenegro', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['Sassari-Tempio-Palau railway', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['Rhônexpress', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?o ) { ( resource:passage_du_Montenegro ) ( resource:Sassari-Tempio-Palau_railway ) ( resource:Rhônexpress ) } . ?o property:named_after ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q236 Q13645 Q46130
P47
Q15617994
USER
Which administrative territories share border with Montenegro, Tempio Pausania and Rhône ?
(Q236,P47,c(Q15617994)) (Q13645,P47,c(Q15617994)) (Q46130,P47,c(Q15617994))
action union
action filter_type
action find
entity Q236
relation P47
type Q15617994
action filter_type
action find
entity Q13645
relation P47
type Q15617994
action filter_type
action find
entity Q46130
relation P47
type Q15617994
['Q236', 'P47', {'concept': 'Q15617994'}] ['Q13645', 'P47', {'concept': 'Q15617994'}] ['Q46130', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { resource:Q236 property:P47 ?p . ?p rdf:type ontology:Q15617994 } UNION { resource:Q13645 property:P47 ?p . ?p rdf:type ontology:Q15617994 } }
Montenegro Tempio Pausania Rhône
action union
action filter_type
action find
entity Montenegro
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Tempio Pausania
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Rhône
relation shares border with
type designation for an administrative territorial entity
['Montenegro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Tempio Pausania', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Rhône', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { resource:Montenegro property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Tempio_Pausania property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q225 Q403 Q224
SYSTEM
Bosnia and Herzegovina, Serbia, Croatia
Q225 Q224 Q222 Q403 Q340916 Q391241 Q333389 Q391659 Q340908 Q341023 Q340665 Q340628 Q340961 Q340658 Q340721 Q340630 Q390699 Q186538 Q12569 Q12736 Q12559 Q3083
(Q236,P47,c(Q15617994)) (Q13645,P47,c(Q15617994)) (Q46130,P47,c(Q15617994))
action union
action filter_type
action find
entity Q236
relation P47
type Q15617994
action filter_type
action find
entity Q13645
relation P47
type Q15617994
action filter_type
action find
entity Q46130
relation P47
type Q15617994
[ANSWERS] share border with Montenegro, Tempio Pausania and Rhône
['Q236', 'P47', {'concept': 'Q15617994'}] ['Q13645', 'P47', {'concept': 'Q15617994'}] ['Q46130', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { resource:Q236 property:P47 ?p . ?p rdf:type ontology:Q15617994 } UNION { resource:Q13645 property:P47 ?p . ?p rdf:type ontology:Q15617994 } }
Bosnia and Herzegovina Croatia Albania Serbia Luras Perfugas Palau Tula, Sardinia Luogosanto Santa Teresa Gallura Bortigiadas Aggius Oschiri Berchidda Calangianus Aglientu Erula Arzachena Loire Saône-et-Loire Isère Ain
Bosnia and Herzegovina, Serbia and Croatia share border with Montenegro, Tempio Pausania and Rhône
Bosnia and Herzegovina Serbia Croatia
action union
action filter_type
action find
entity Montenegro
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Tempio Pausania
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Rhône
relation shares border with
type designation for an administrative territorial entity
['Montenegro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Tempio Pausania', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Rhône', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { resource:Montenegro property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Tempio_Pausania property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q225
P159
Q874405
USER
Which social groups have the principal seat at that administrative territory ?
(c(Q874405),P159,Q225)
action filter_type
action find_reverse
entity Q225
relation P159
type Q874405
[{'concept': 'Q874405'}, 'P159', 'Q225']
SELECT DISTINCT ?y WHERE { ?y property:P159 resource:Q225 . ?y rdf:type ontology:Q874405 }
Bosnia and Herzegovina
action filter_type
action find_reverse
entity Bosnia and Herzegovina
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Bosnia and Herzegovina']
SELECT DISTINCT ?y WHERE { ?y property:headquarters_location resource:Bosnia_and_Herzegovina . ?y rdf:type ontology:social_group }
[]
social group
Clarification for simple ques.
Q225
SYSTEM
Did you mean Bosnia and Herzegovina ?
Q225 Q403 Q224
(c(Q874405),P159,Q225) (c(Q874405),P159,Q403) (c(Q874405),P159,Q224)
[ANSWER]
[{'concept': 'Q874405'}, 'P159', 'Q225'] [{'concept': 'Q874405'}, 'P159', 'Q403'] [{'concept': 'Q874405'}, 'P159', 'Q224']
SELECT DISTINCT ?y WHERE { ?y property:P159 resource:Q225 . ?y rdf:type ontology:Q874405 }
Bosnia and Herzegovina Serbia Croatia
Did you mean Bosnia and Herzegovina ?
Bosnia and Herzegovina
[{'concept': 'social group'}, 'headquarters location', 'Bosnia and Herzegovina'] [{'concept': 'social group'}, 'headquarters location', 'Serbia'] [{'concept': 'social group'}, 'headquarters location', 'Croatia']
SELECT DISTINCT ?y WHERE { ?y property:headquarters_location resource:Bosnia_and_Herzegovina . ?y rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q874405),P159,Q225)
[{'concept': 'Q874405'}, 'P159', 'Q225']
[{'concept': 'social group'}, 'headquarters location', 'Bosnia and Herzegovina']
[]
Q19840143 Q7238545
SYSTEM
Green cadres, Praskozorje
Q19840143 Q7238545
(c(Q874405),P159,Q225)
action filter_type
action find_reverse
entity Q225
relation P159
type Q874405
[ANSWERS] have the principal seat at that administrative territory
[{'concept': 'Q874405'}, 'P159', 'Q225']
SELECT DISTINCT ?y WHERE { ?y property:P159 resource:Q225 . ?y rdf:type ontology:Q874405 }
Green cadres Praskozorje
Green cadres and Praskozorje have the principal seat at that administrative territory
Green cadres Praskozorje
action filter_type
action find_reverse
entity Bosnia and Herzegovina
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Bosnia and Herzegovina']
SELECT DISTINCT ?y WHERE { ?y property:headquarters_location resource:Bosnia_and_Herzegovina . ?y rdf:type ontology:social_group }
[]