Simple Question (Direct)
Simple Question
Q331294
P21
Q290
USER
What is the sex of John Armstrong ?
(Q331294,P21,c(Q290))
action filter_type
action find
entity Q331294
relation P21
type Q290
['Q331294', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q331294 property:P21 ?m . ?m rdf:type ontology:Q290 }
John Armstrong
action filter_type
action find
entity John Armstrong
relation gender
type sex
['John Armstrong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:John_Armstrong property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q331294,P21,c(Q290))
action filter_type
action find
entity Q331294
relation P21
type Q290
The sex of John Armstrong is a [ANSWER]
['Q331294', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q331294 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
The sex of John Armstrong is a male
male
action filter_type
action find
entity John Armstrong
relation gender
type sex
['John Armstrong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:John_Armstrong property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q331294
P138
Q355304
USER
Which watercourse comes from John Armstrong ?
(c(Q355304),P138,Q331294)
action filter_type
action find_reverse
entity Q331294
relation P138
type Q355304
[{'concept': 'Q355304'}, 'P138', 'Q331294']
SELECT DISTINCT ?n WHERE { ?n property:P138 resource:Q331294 . ?n rdf:type ontology:Q355304 }
John Armstrong
action filter_type
action find_reverse
entity John Armstrong
relation named after
type watercourse
[{'concept': 'watercourse'}, 'named after', 'John Armstrong']
SELECT DISTINCT ?n WHERE { ?n property:named_after resource:John_Armstrong . ?n rdf:type ontology:watercourse }
[]
watercourse
Q4793931
SYSTEM
Armstrong Creek
Q4793931
(c(Q355304),P138,Q331294)
action filter_type
action find_reverse
entity Q331294
relation P138
type Q355304
[ANSWER] comes from John Armstrong
[{'concept': 'Q355304'}, 'P138', 'Q331294']
SELECT DISTINCT ?n WHERE { ?n property:P138 resource:Q331294 . ?n rdf:type ontology:Q355304 }
Armstrong Creek
Armstrong Creek comes from John Armstrong
Armstrong Creek
action filter_type
action find_reverse
entity John Armstrong
relation named after
type watercourse
[{'concept': 'watercourse'}, 'named after', 'John Armstrong']
SELECT DISTINCT ?n WHERE { ?n property:named_after resource:John_Armstrong . ?n rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4793931
P974
Q355304
USER
What is that one a tributary of ?
(c(Q355304),P974,Q4793931)
action filter_type
action find_reverse
entity Q4793931
relation P974
type Q355304
[{'concept': 'Q355304'}, 'P974', 'Q4793931']
SELECT DISTINCT ?e WHERE { ?e property:P974 resource:Q4793931 . ?e rdf:type ontology:Q355304 }
Armstrong Creek
action filter_type
action find_reverse
entity Armstrong Creek
relation tributary
type watercourse
[{'concept': 'watercourse'}, 'tributary', 'Armstrong Creek']
SELECT DISTINCT ?e WHERE { ?e property:tributary resource:Armstrong_Creek . ?e rdf:type ontology:watercourse }
[]
watercourse
Q27538
SYSTEM
Susquehanna River
Q27538
(c(Q355304),P974,Q4793931)
action filter_type
action find_reverse
entity Q4793931
relation P974
type Q355304
[ANSWER] is that one a tributary of
[{'concept': 'Q355304'}, 'P974', 'Q4793931']
SELECT DISTINCT ?e WHERE { ?e property:P974 resource:Q4793931 . ?e rdf:type ontology:Q355304 }
Susquehanna River
Susquehanna River is that one a tributary of
Susquehanna River
action filter_type
action find_reverse
entity Armstrong Creek
relation tributary
type watercourse
[{'concept': 'watercourse'}, 'tributary', 'Armstrong Creek']
SELECT DISTINCT ?e WHERE { ?e property:tributary resource:Armstrong_Creek . ?e rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3199336 Q4793931
P974
Q355304
USER
Or Kurchum River?
OR((c(Q355304),P974,Q4793931), (c(Q355304),P974,Q3199336))
action filter_type
action union
action find_reverse
entity Q4793931
relation P974
action find_reverse
entity Q3199336
relation P974
type Q355304
{'OR': [[{'concept': 'Q355304'}, 'P974', 'Q4793931'], [{'concept': 'Q355304'}, 'P974', 'Q3199336']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P974 resource:Q4793931 } UNION { ?f property:P974 resource:Q3199336 } } . ?f rdf:type ontology:Q355304 }
Kurchum River Armstrong Creek
action filter_type
action union
action find_reverse
entity Armstrong Creek
relation tributary
action find_reverse
entity Kurchum River
relation tributary
type watercourse
{'OR': [[{'concept': 'watercourse'}, 'tributary', 'Armstrong Creek'], [{'concept': 'watercourse'}, 'tributary', 'Kurchum River']]}
SELECT DISTINCT ?f WHERE { { { ?f property:tributary resource:Armstrong_Creek } UNION { ?f property:tributary resource:Kurchum_River } } . ?f rdf:type ontology:watercourse }
[]
watercourse
Q128102 Q27538
SYSTEM
Irtysh River, Susquehanna River
Q128102 Q27538
OR((c(Q355304),P974,Q4793931), (c(Q355304),P974,Q3199336))
action filter_type
action union
action find_reverse
entity Q4793931
relation P974
action find_reverse
entity Q3199336
relation P974
type Q355304
[ANSWERS]
{'OR': [[{'concept': 'Q355304'}, 'P974', 'Q4793931'], [{'concept': 'Q355304'}, 'P974', 'Q3199336']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P974 resource:Q4793931 } UNION { ?f property:P974 resource:Q3199336 } } . ?f rdf:type ontology:Q355304 }
Irtysh River Susquehanna River
Irtysh River Susquehanna River
action filter_type
action union
action find_reverse
entity Armstrong Creek
relation tributary
action find_reverse
entity Kurchum River
relation tributary
type watercourse
{'OR': [[{'concept': 'watercourse'}, 'tributary', 'Armstrong Creek'], [{'concept': 'watercourse'}, 'tributary', 'Kurchum River']]}
SELECT DISTINCT ?f WHERE { { { ?f property:tributary resource:Armstrong_Creek } UNION { ?f property:tributary resource:Kurchum_River } } . ?f rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7990603 Q128102
P403 P974
Q355304
USER
Which watercourses rivers or lakes are a tributary of Irtysh River or do Whanaki River drain into ?
OR((Q128102,P974,c(Q355304)), (Q7990603,P403,c(Q355304)))
action filter_type
action union
action find
entity Q128102
relation P974
action find
entity Q7990603
relation P403
type Q355304
{'OR': [['Q128102', 'P974', {'concept': 'Q355304'}], ['Q7990603', 'P403', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q128102 property:P974 ?l } UNION { resource:Q7990603 property:P403 ?l } } . ?l rdf:type ontology:Q355304 }
Whanaki River Irtysh River
action filter_type
action union
action find
entity Irtysh River
relation tributary
action find
entity Whanaki River
relation mouth of the watercourse
type watercourse
{'OR': [['Irtysh River', 'tributary', {'concept': 'watercourse'}], ['Whanaki River', 'mouth of the watercourse', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Irtysh_River property:tributary ?l } UNION { resource:Whanaki_River property:mouth_of_the_watercourse ?l } } . ?l rdf:type ontology:watercourse }
[]
watercourse
Q1118139 Q705896 Q743181 Q3199336 Q124653 Q1185746 Q2469390 Q2589600 Q641923 Q2625817
SYSTEM
Some of them are Ulba River, Tara River, Uy River, Kurchum River, Tobol River, Demyanka, Shish River, Uba River, Om River, Osha River
Q2589600 Q613699 Q124653 Q7688691 Q1185746 Q2625817 Q3199336 Q191524 Q2624925 Q856630 Q705896 Q2469390 Q641923 Q1118139 Q743181 Q999149
OR((Q128102,P974,c(Q355304)), (Q7990603,P403,c(Q355304)))
action filter_type
action union
action find
entity Q128102
relation P974
action find
entity Q7990603
relation P403
type Q355304
[ANSWERS] are a tributary of Irtysh River or do Whanaki River drain into
{'OR': [['Q128102', 'P974', {'concept': 'Q355304'}], ['Q7990603', 'P403', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q128102 property:P974 ?l } UNION { resource:Q7990603 property:P403 ?l } } . ?l rdf:type ontology:Q355304 }
Uba River Turtas Tobol River Tauhoa River Demyanka Osha River Kurchum River Ishim River Narym River Konda River Tara River Shish River Om River Ulba River Uy River Bukhtarma River
Ulba River, Tara River, Uy River, Kurchum River, Tobol River, Demyanka, Shish River, Uba River, Om River and Osha River are a tributary of Irtysh River or do Whanaki River drain into
Ulba River Tara River Uy River Kurchum River Tobol River Demyanka Shish River Uba River Om River Osha River
action filter_type
action union
action find
entity Irtysh River
relation tributary
action find
entity Whanaki River
relation mouth of the watercourse
type watercourse
{'OR': [['Irtysh River', 'tributary', {'concept': 'watercourse'}], ['Whanaki River', 'mouth of the watercourse', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Irtysh_River property:tributary ?l } UNION { resource:Whanaki_River property:mouth_of_the_watercourse ?l } } . ?l rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1848929 Q743181
P974
Q355304
USER
Which watercourses are Uy River or Slovechna a parent rive of ?
OR((c(Q355304),P974,Q743181), (c(Q355304),P974,Q1848929))
action filter_type
action union
action find_reverse
entity Q743181
relation P974
action find_reverse
entity Q1848929
relation P974
type Q355304
{'OR': [[{'concept': 'Q355304'}, 'P974', 'Q743181'], [{'concept': 'Q355304'}, 'P974', 'Q1848929']]}
SELECT DISTINCT ?w WHERE { { ?w property:P974 ?d . VALUES ( ?d ) { ( resource:Q743181 ) ( resource:Q1848929 ) } } . ?w rdf:type ontology:Q355304 }
Slovechna Uy River
action filter_type
action union
action find_reverse
entity Uy River
relation tributary
action find_reverse
entity Slovechna
relation tributary
type watercourse
{'OR': [[{'concept': 'watercourse'}, 'tributary', 'Uy River'], [{'concept': 'watercourse'}, 'tributary', 'Slovechna']]}
SELECT DISTINCT ?w WHERE { { ?w property:tributary ?d . VALUES ( ?d ) { ( resource:Uy_River ) ( resource:Slovechna ) } } . ?w rdf:type ontology:watercourse }
[]
watercourse
Q128102 Q157042
SYSTEM
Irtysh River, Pripyat River
Q128102 Q157042
OR((c(Q355304),P974,Q743181), (c(Q355304),P974,Q1848929))
action filter_type
action union
action find_reverse
entity Q743181
relation P974
action find_reverse
entity Q1848929
relation P974
type Q355304
As [ANSWERS] are Uy River or Slovechna a parent rive of
{'OR': [[{'concept': 'Q355304'}, 'P974', 'Q743181'], [{'concept': 'Q355304'}, 'P974', 'Q1848929']]}
SELECT DISTINCT ?w WHERE { { ?w property:P974 ?d . VALUES ( ?d ) { ( resource:Q743181 ) ( resource:Q1848929 ) } } . ?w rdf:type ontology:Q355304 }
Irtysh River Pripyat River
As Irtysh River and Pripyat River are Uy River or Slovechna a parent rive of
Irtysh River Pripyat River
action filter_type
action union
action find_reverse
entity Uy River
relation tributary
action find_reverse
entity Slovechna
relation tributary
type watercourse
{'OR': [[{'concept': 'watercourse'}, 'tributary', 'Uy River'], [{'concept': 'watercourse'}, 'tributary', 'Slovechna']]}
SELECT DISTINCT ?w WHERE { { ?w property:tributary ?d . VALUES ( ?d ) { ( resource:Uy_River ) ( resource:Slovechna ) } } . ?w rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1848929
P30
Q2221906
USER
Where is Slovechna situated ?
(Q1848929,P30,c(Q2221906))
action filter_type
action find
entity Q1848929
relation P30
type Q2221906
['Q1848929', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { resource:Q1848929 property:P30 ?b . ?b rdf:type ontology:Q2221906 }
Slovechna
action filter_type
action find
entity Slovechna
relation continent
type geographic location
['Slovechna', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { resource:Slovechna property:continent ?b . ?b rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q1848929,P30,c(Q2221906))
action filter_type
action find
entity Q1848929
relation P30
type Q2221906
Slovechna is situated in [ANSWER]
['Q1848929', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { resource:Q1848929 property:P30 ?b . ?b rdf:type ontology:Q2221906 }
Europe
Slovechna is situated in Europe
Europe
action filter_type
action find
entity Slovechna
relation continent
type geographic location
['Slovechna', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { resource:Slovechna property:continent ?b . ?b rdf:type ontology:geographic_location }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q46 Q36
P361
Q15617994
USER
Is Poland a component of that geographic location ?
(Q36,P361,Q46)
action is_in
entity Q46
action find
entity Q36
relation P361
['Q36', 'P361', 'Q46']
ASK WHERE { resource:Q36 property:P361 resource:Q46 }
Europe Poland
action is_in
entity Europe
action find
entity Poland
relation part of
['Poland', 'part of', 'Europe']
ASK WHERE { resource:Poland property:part_of resource:Europe }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q36,P361,Q46)
action is_in
entity Q46
action find
entity Q36
relation P361
[ANSWER]
['Q36', 'P361', 'Q46']
ASK WHERE { resource:Q36 property:P361 resource:Q46 }
Yes
action is_in
entity Europe
action find
entity Poland
relation part of
['Poland', 'part of', 'Europe']
ASK WHERE { resource:Poland property:part_of resource:Europe }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q27538 Q30
P17
Q15617994
USER
Is Susquehanna River located in United States of America ?
(Q27538,P17,Q30)
action is_in
entity Q30
action find
entity Q27538
relation P17
['Q27538', 'P17', 'Q30']
ASK WHERE { resource:Q27538 property:P17 resource:Q30 }
Susquehanna River United States of America
action is_in
entity United States of America
action find
entity Susquehanna River
relation country
['Susquehanna River', 'country', 'United States of America']
ASK WHERE { resource:Susquehanna_River property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q27538,P17,Q30)
action is_in
entity Q30
action find
entity Q27538
relation P17
[ANSWER]
['Q27538', 'P17', 'Q30']
ASK WHERE { resource:Q27538 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Susquehanna River
relation country
['Susquehanna River', 'country', 'United States of America']
ASK WHERE { resource:Susquehanna_River property:country resource:United_States_of_America }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q5929184
P706
Q2221906 Q2221906
USER
How many geographic locations are greater number of geographic locations located on than Hueco Mountains ?
(c(Q2221906),P706,c(Q2221906))
action count
action greater
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q2221906
action count
action filter_type
action find
entity Q5929184
relation P706
type Q2221906
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P706 ?c . ?c rdf:type ontology:Q2221906 . ?v rdf:type ontology:Q2221906 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q5929184 property:P706 ?x . ?x rdf:type ontology:Q2221906 } } . FILTER ( ?d > ?n ) }
Hueco Mountains
action count
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type geographic location
action count
action filter_type
action find
entity Hueco Mountains
relation located on terrain feature
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:located_on_terrain_feature ?c . ?c rdf:type ontology:geographic_location . ?v rdf:type ontology:geographic_location } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Hueco_Mountains property:located_on_terrain_feature ?x . ?x rdf:type ontology:geographic_location } } . FILTER ( ?d > ?n ) }
[]
geographic location geographic location
SYSTEM
13
Q431907 Q636672 Q46 Q10975458 Q4920954 Q828 Q49 Q664609 Q27329 Q4996620 Q326359 Q530917 Q15
(c(Q2221906),P706,c(Q2221906))
action count
action greater
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q2221906
action count
action filter_type
action find
entity Q5929184
relation P706
type Q2221906
[ANSWER]
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P706 ?c . ?c rdf:type ontology:Q2221906 . ?v rdf:type ontology:Q2221906 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q5929184 property:P706 ?x . ?x rdf:type ontology:Q2221906 } } . FILTER ( ?d > ?n ) }
Sierra de la Culata Sierra Nevada de Mérida Europe Maramureș Black Hills Americas North America Caribbean North Asia Bull Run Mountains Palatinate West Antarctica Africa
13
action count
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type geographic location
action count
action filter_type
action find
entity Hueco Mountains
relation located on terrain feature
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:located_on_terrain_feature ?c . ?c rdf:type ontology:geographic_location . ?v rdf:type ontology:geographic_location } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Hueco_Mountains property:located_on_terrain_feature ?x . ?x rdf:type ontology:geographic_location } } . FILTER ( ?d > ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q605714
P706
Q2221906 Q2221906
USER
And what about Donbass?
(c(Q2221906),P706,c(Q2221906))
action count
action greater
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q2221906
action count
action filter_type
action find
entity Q605714
relation P706
type Q2221906
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?v ) WHERE { ?x property:P706 ?h . ?h rdf:type ontology:Q2221906 . ?x rdf:type ontology:Q2221906 } GROUP BY ?h } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { resource:Q605714 property:P706 ?s . ?s rdf:type ontology:Q2221906 } } }
Donbass
action count
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type geographic location
action count
action filter_type
action find
entity Donbass
relation located on terrain feature
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?v ) WHERE { ?x property:located_on_terrain_feature ?h . ?h rdf:type ontology:geographic_location . ?x rdf:type ontology:geographic_location } GROUP BY ?h } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { resource:Donbass property:located_on_terrain_feature ?s . ?s rdf:type ontology:geographic_location } } }
[]
geographic location geographic location
SYSTEM
13
Q431907 Q636672 Q46 Q10975458 Q4920954 Q828 Q49 Q664609 Q27329 Q4996620 Q326359 Q530917 Q15
(c(Q2221906),P706,c(Q2221906))
action count
action greater
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q2221906
action count
action filter_type
action find
entity Q605714
relation P706
type Q2221906
[ANSWER]
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?v ) WHERE { ?x property:P706 ?h . ?h rdf:type ontology:Q2221906 . ?x rdf:type ontology:Q2221906 } GROUP BY ?h } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { resource:Q605714 property:P706 ?s . ?s rdf:type ontology:Q2221906 } } }
Sierra de la Culata Sierra Nevada de Mérida Europe Maramureș Black Hills Americas North America Caribbean North Asia Bull Run Mountains Palatinate West Antarctica Africa
13
action count
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type geographic location
action count
action filter_type
action find
entity Donbass
relation located on terrain feature
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?x ) AS ?v ) WHERE { ?x property:located_on_terrain_feature ?h . ?h rdf:type ontology:geographic_location . ?x rdf:type ontology:geographic_location } GROUP BY ?h } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { resource:Donbass property:located_on_terrain_feature ?s . ?s rdf:type ontology:geographic_location } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q46
P276
Q198
USER
Which war is situated at Europe ?
(c(Q198),P276,Q46)
action filter_type
action find_reverse
entity Q46
relation P276
type Q198
[{'concept': 'Q198'}, 'P276', 'Q46']
SELECT DISTINCT ?o WHERE { ?o property:P276 resource:Q46 . ?o rdf:type ontology:Q198 }
Europe
action filter_type
action find_reverse
entity Europe
relation location
type war
[{'concept': 'war'}, 'location', 'Europe']
SELECT DISTINCT ?o WHERE { ?o property:location resource:Europe . ?o rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(c(Q198),P276,Q46)
action filter_type
action find_reverse
entity Q46
relation P276
type Q198
In [ANSWER] is situated at Europe
[{'concept': 'Q198'}, 'P276', 'Q46']
SELECT DISTINCT ?o WHERE { ?o property:P276 resource:Q46 . ?o rdf:type ontology:Q198 }
World War I
In World War I is situated at Europe
World War I
action filter_type
action find_reverse
entity Europe
relation location
type war
[{'concept': 'war'}, 'location', 'Europe']
SELECT DISTINCT ?o WHERE { ?o property:location resource:Europe . ?o rdf:type ontology:war }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q641669
Q14524493
USER
And how about Arenas de San Pedro?
(Q641669,P610,c(Q14524493))
action filter_type
action find
entity Q641669
relation P610
type Q14524493
['Q641669', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q14524493 . resource:Q641669 property:P610 ?u }
Arenas de San Pedro
action filter_type
action find
entity Arenas de San Pedro
relation highest point
type terrain
['Arenas de San Pedro', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:terrain . resource:Arenas_de_San_Pedro property:highest_point ?u }
[]
terrain
Q3612390
SYSTEM
La Mira
Q3612390
(Q641669,P610,c(Q14524493))
action filter_type
action find
entity Q641669
relation P610
type Q14524493
[ANSWER]
['Q641669', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q14524493 . resource:Q641669 property:P610 ?u }
La Mira
La Mira
action filter_type
action find
entity Arenas de San Pedro
relation highest point
type terrain
['Arenas de San Pedro', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:terrain . resource:Arenas_de_San_Pedro property:highest_point ?u }
[]