Simple Question (Direct)
Simple Question
Q6083691
P495
Q15617994
USER
Where did From the Village to the City originate ?
(Q6083691,P495,c(Q15617994))
action filter_type
action find
entity Q6083691
relation P495
type Q15617994
['Q6083691', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q6083691 property:P495 ?t }
From the Village to the City
action filter_type
action find
entity From the Village to the City
relation country of origin
type designation for an administrative territorial entity
['From the Village to the City', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:From_the_Village_to_the_City property:country_of_origin ?t }
[]
designation for an administrative territorial entity
Q43
SYSTEM
Turkey
Q43
(Q6083691,P495,c(Q15617994))
action filter_type
action find
entity Q6083691
relation P495
type Q15617994
From the Village to the City originated from [ANSWER]
['Q6083691', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q6083691 property:P495 ?t }
Turkey
From the Village to the City originated from Turkey
Turkey
action filter_type
action find
entity From the Village to the City
relation country of origin
type designation for an administrative territorial entity
['From the Village to the City', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:From_the_Village_to_the_City property:country_of_origin ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43
P47
Q7275
USER
Which states have an adjacent border with that administrative territory ?
(c(Q7275),P47,Q43)
action filter_type
action find_reverse
entity Q43
relation P47
type Q7275
[{'concept': 'Q7275'}, 'P47', 'Q43']
SELECT DISTINCT ?l WHERE { ?l property:P47 resource:Q43 . ?l rdf:type ontology:Q7275 }
Turkey
action filter_type
action find_reverse
entity Turkey
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Turkey']
SELECT DISTINCT ?l WHERE { ?l property:shares_border_with resource:Turkey . ?l rdf:type ontology:state }
[]
state
Q147909 Q15180
SYSTEM
Kingdom of Bulgaria, Soviet Union
Q147909 Q15180
(c(Q7275),P47,Q43)
action filter_type
action find_reverse
entity Q43
relation P47
type Q7275
[ANSWERS] have an adjacent border with that administrative territory
[{'concept': 'Q7275'}, 'P47', 'Q43']
SELECT DISTINCT ?l WHERE { ?l property:P47 resource:Q43 . ?l rdf:type ontology:Q7275 }
Kingdom of Bulgaria Soviet Union
Kingdom of Bulgaria and Soviet Union have an adjacent border with that administrative territory
Kingdom of Bulgaria Soviet Union
action filter_type
action find_reverse
entity Turkey
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Turkey']
SELECT DISTINCT ?l WHERE { ?l property:shares_border_with resource:Turkey . ?l rdf:type ontology:state }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15180
P176
Q27731
USER
Which automotive navigation systems were produced by that state ?
(c(Q27731),P176,Q15180)
action filter_type
action find_reverse
entity Q15180
relation P176
type Q27731
[{'concept': 'Q27731'}, 'P176', 'Q15180']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q27731 . ?s property:P176 resource:Q15180 }
Soviet Union
action filter_type
action find_reverse
entity Soviet Union
relation manufacturer
type automotive navigation system
[{'concept': 'automotive navigation system'}, 'manufacturer', 'Soviet Union']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:automotive_navigation_system . ?s property:manufacturer resource:Soviet_Union }
[]
automotive navigation system
Clarification for simple ques.
Q15180
SYSTEM
Did you mean Soviet Union ?
Q147909 Q15180
(c(Q27731),P176,Q147909) (c(Q27731),P176,Q15180)
[ANSWER]
[{'concept': 'Q27731'}, 'P176', 'Q147909'] [{'concept': 'Q27731'}, 'P176', 'Q15180']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q27731 . ?s property:P176 resource:Q15180 }
Kingdom of Bulgaria Soviet Union
Did you mean Soviet Union ?
Soviet Union
[{'concept': 'automotive navigation system'}, 'manufacturer', 'Kingdom of Bulgaria'] [{'concept': 'automotive navigation system'}, 'manufacturer', 'Soviet Union']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:automotive_navigation_system . ?s property:manufacturer resource:Soviet_Union }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q27731),P176,Q15180)
[{'concept': 'Q27731'}, 'P176', 'Q15180']
[{'concept': 'automotive navigation system'}, 'manufacturer', 'Soviet Union']
[]
Q17424195 Q17426384
SYSTEM
ARK-5 Amur, ARK-54
Q17424195 Q17426384
(c(Q27731),P176,Q15180)
action filter_type
action find_reverse
entity Q15180
relation P176
type Q27731
[ANSWERS] were produced by that state
[{'concept': 'Q27731'}, 'P176', 'Q15180']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q27731 . ?s property:P176 resource:Q15180 }
ARK-5 Amur ARK-54
ARK-5 Amur and ARK-54 were produced by that state
ARK-5 Amur ARK-54
action filter_type
action find_reverse
entity Soviet Union
relation manufacturer
type automotive navigation system
[{'concept': 'automotive navigation system'}, 'manufacturer', 'Soviet Union']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:automotive_navigation_system . ?s property:manufacturer resource:Soviet_Union }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q19901897 Q15180
P30
Q2221906
USER
Which geographic locations are Soviet Union and Bălăneasa River located in ?
AND((Q15180,P30,c(Q2221906)), (Q19901897,P30,c(Q2221906)))
action filter_type
action intersection
action find
entity Q15180
relation P30
action find
entity Q19901897
relation P30
type Q2221906
{'AND': [['Q15180', 'P30', {'concept': 'Q2221906'}], ['Q19901897', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?d WHERE { resource:Q15180 property:P30 ?d . resource:Q19901897 property:P30 ?d . ?d rdf:type ontology:Q2221906 }
Bălăneasa River Soviet Union
action filter_type
action intersection
action find
entity Soviet Union
relation continent
action find
entity Bălăneasa River
relation continent
type geographic location
{'AND': [['Soviet Union', 'continent', {'concept': 'geographic location'}], ['Bălăneasa River', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?d WHERE { resource:Soviet_Union property:continent ?d . resource:Bălăneasa_River property:continent ?d . ?d rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
AND((Q15180,P30,c(Q2221906)), (Q19901897,P30,c(Q2221906)))
action filter_type
action intersection
action find
entity Q15180
relation P30
action find
entity Q19901897
relation P30
type Q2221906
Soviet Union and Bălăneasa River are located in [ANSWER]
{'AND': [['Q15180', 'P30', {'concept': 'Q2221906'}], ['Q19901897', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?d WHERE { resource:Q15180 property:P30 ?d . resource:Q19901897 property:P30 ?d . ?d rdf:type ontology:Q2221906 }
Europe
Soviet Union and Bălăneasa River are located in Europe
Europe
action filter_type
action intersection
action find
entity Soviet Union
relation continent
action find
entity Bălăneasa River
relation continent
type geographic location
{'AND': [['Soviet Union', 'continent', {'concept': 'geographic location'}], ['Bălăneasa River', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?d WHERE { resource:Soviet_Union property:continent ?d . resource:Bălăneasa_River property:continent ?d . ?d rdf:type ontology:geographic_location }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q46 Q21477142 Q43105
P610
Q14524493
USER
Does that geographic location have Christensenkollen and Mount Elbrus as its highest point ?
(Q46,P610,Q21477142) (Q46,P610,Q43105)
action is_in
entity Q46
action intersection
action find_reverse
entity Q21477142
relation P610
action find_reverse
entity Q43105
relation P610
['Q46', 'P610', 'Q21477142'] ['Q46', 'P610', 'Q43105']
ASK WHERE { resource:Q46 property:P610 resource:Q21477142 . resource:Q46 property:P610 resource:Q43105 }
Europe Christensenkollen Mount Elbrus
action is_in
entity Europe
action intersection
action find_reverse
entity Christensenkollen
relation highest point
action find_reverse
entity Mount Elbrus
relation highest point
['Europe', 'highest point', 'Christensenkollen'] ['Europe', 'highest point', 'Mount Elbrus']
ASK WHERE { resource:Europe property:highest_point resource:Christensenkollen . resource:Europe property:highest_point resource:Mount_Elbrus }
[]
terrain
SYSTEM
NO and YES respectively
(Q46,P610,Q21477142) (Q46,P610,Q43105)
action is_in
entity Q46
action intersection
action find_reverse
entity Q21477142
relation P610
action find_reverse
entity Q43105
relation P610
[ANSWER]
['Q46', 'P610', 'Q21477142'] ['Q46', 'P610', 'Q43105']
ASK WHERE { resource:Q46 property:P610 resource:Q21477142 . resource:Q46 property:P610 resource:Q43105 }
NO and YES respectively
action is_in
entity Europe
action intersection
action find_reverse
entity Christensenkollen
relation highest point
action find_reverse
entity Mount Elbrus
relation highest point
['Europe', 'highest point', 'Christensenkollen'] ['Europe', 'highest point', 'Mount Elbrus']
ASK WHERE { resource:Europe property:highest_point resource:Christensenkollen . resource:Europe property:highest_point resource:Mount_Elbrus }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P706
Q2221906 Q811979
USER
How many architectural structures are located in atleast 1 geographic location ?
(c(Q811979),P706,c(Q2221906))
action count
action atleast
action find_tuple_counts
relation P706
type Q811979
type Q2221906
value 1
[{'concept': 'Q811979'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?m ) WHERE { ?o rdf:type ontology:Q2221906 . ?g rdf:type ontology:Q811979 . ?g property:P706 ?o } GROUP BY ?g } . FILTER ( ?m >= 1 ) }
action count
action atleast
action find_tuple_counts
relation located on terrain feature
type architectural structure
type geographic location
value 1
[{'concept': 'architectural structure'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?m ) WHERE { ?o rdf:type ontology:geographic_location . ?g rdf:type ontology:architectural_structure . ?g property:located_on_terrain_feature ?o } GROUP BY ?g } . FILTER ( ?m >= 1 ) }
[]
geographic location architectural structure
SYSTEM
3
Q626914 Q22683639 Q5522681
(c(Q811979),P706,c(Q2221906))
action count
action atleast
action find_tuple_counts
relation P706
type Q811979
type Q2221906
value 1
[ANSWER]
[{'concept': 'Q811979'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?m ) WHERE { ?o rdf:type ontology:Q2221906 . ?g rdf:type ontology:Q811979 . ?g property:P706 ?o } GROUP BY ?g } . FILTER ( ?m >= 1 ) }
Sky Blu Bordeaux-Cadillac railway station Gare de Bordeaux État
3
action count
action atleast
action find_tuple_counts
relation located on terrain feature
type architectural structure
type geographic location
value 1
[{'concept': 'architectural structure'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?m ) WHERE { ?o rdf:type ontology:geographic_location . ?g rdf:type ontology:architectural_structure . ?g property:located_on_terrain_feature ?o } GROUP BY ?g } . FILTER ( ?m >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43
P530
Q1048835
USER
Which political territories have diplomatic relations with Turkey ?
(Q43,P530,c(Q1048835))
action filter_type
action find
entity Q43
relation P530
type Q1048835
['Q43', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q43 property:P530 ?b }
Turkey
action filter_type
action find
entity Turkey
relation diplomatic relation
type political territorial entity
['Turkey', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Turkey property:diplomatic_relation ?b }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
(Q43,P530,c(Q1048835))
action filter_type
action find
entity Q43
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with Turkey
['Q43', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q43 property:P530 ?b }
Canada Australia Germany
Canada, Australia and Germany have diplomatic relations with Turkey
Canada Australia Germany
action filter_type
action find
entity Turkey
relation diplomatic relation
type political territorial entity
['Turkey', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Turkey property:diplomatic_relation ?b }
[]