Simple Question (Direct)
Simple Question
Q7239713
P641
Q349
USER
What was the sport that Predrag Mirčeta was a part of ?
(Q7239713,P641,c(Q349))
action filter_type
action find
entity Q7239713
relation P641
type Q349
['Q7239713', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q7239713 property:P641 ?p . ?p rdf:type ontology:Q349 }
Predrag Mirčeta
action filter_type
action find
entity Predrag Mirčeta
relation sport
type sport
['Predrag Mirčeta', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Predrag_Mirčeta property:sport ?p . ?p rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7239713,P641,c(Q349))
action filter_type
action find
entity Q7239713
relation P641
type Q349
The sport that Predrag Mirčeta was a part of was the [ANSWER]
['Q7239713', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q7239713 property:P641 ?p . ?p rdf:type ontology:Q349 }
association football
The sport that Predrag Mirčeta was a part of was the association football
association football
action filter_type
action find
entity Predrag Mirčeta
relation sport
type sport
['Predrag Mirčeta', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Predrag_Mirčeta property:sport ?p . ?p rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7239713
P106
Q12737077
USER
What is the job of that person ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q7239713
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q7239713 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Predrag Mirčeta
action filter_type
action find
entity Predrag Mirčeta
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Predrag_Mirčeta property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q7239713
relation P106
type Q12737077
The job of that person is an [ANSWER]
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q7239713 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
association football player
The job of that person is an association football player
association football player
action filter_type
action find
entity Predrag Mirčeta
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Predrag_Mirčeta property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P425
Q349
USER
How many sports have that occupation as the associated field of occupation ?
(Q937857,P425,c(Q349))
action count
action filter_type
action find
entity Q937857
relation P425
type Q349
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { resource:Q937857 property:P425 ?q . ?q rdf:type ontology:Q349 }
action count
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { resource:association_football_player property:field_of_this_occupation ?q . ?q rdf:type ontology:sport }
[]
sport
SYSTEM
1
Q2736
(Q937857,P425,c(Q349))
action count
action filter_type
action find
entity Q937857
relation P425
type Q349
[ANSWER]
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { resource:Q937857 property:P425 ?q . ?q rdf:type ontology:Q349 }
association football
1
action count
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { resource:association_football_player property:field_of_this_occupation ?q . ?q rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q326827
P2416
Q502895
USER
Which people were a contestant in artistic gymnastics ?
(c(Q502895),P2416,Q326827)
action filter_type
action find_reverse
entity Q326827
relation P2416
type Q502895
[{'concept': 'Q502895'}, 'P2416', 'Q326827']
SELECT DISTINCT ?w WHERE { ?w property:P2416 resource:Q326827 . ?w rdf:type ontology:Q502895 }
artistic gymnastics
action filter_type
action find_reverse
entity artistic gymnastics
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'artistic gymnastics']
SELECT DISTINCT ?w WHERE { ?w property:sports_discipline_competed_in resource:artistic_gymnastics . ?w rdf:type ontology:common_name }
[]
common name
Q241847 Q4805307 Q390877
SYSTEM
McKayla Maroney, Ashleigh Brennan, Agata Karczmarek
Q241847 Q4805307 Q390877
(c(Q502895),P2416,Q326827)
action filter_type
action find_reverse
entity Q326827
relation P2416
type Q502895
[ANSWERS] were a contestant in artistic gymnastics
[{'concept': 'Q502895'}, 'P2416', 'Q326827']
SELECT DISTINCT ?w WHERE { ?w property:P2416 resource:Q326827 . ?w rdf:type ontology:Q502895 }
McKayla Maroney Ashleigh Brennan Agata Karczmarek
McKayla Maroney, Ashleigh Brennan and Agata Karczmarek were a contestant in artistic gymnastics
McKayla Maroney Ashleigh Brennan Agata Karczmarek
action filter_type
action find_reverse
entity artistic gymnastics
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'artistic gymnastics']
SELECT DISTINCT ?w WHERE { ?w property:sports_discipline_competed_in resource:artistic_gymnastics . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q390877
P19
Q56061
USER
Where was Agata Karczmarek born ?
(Q390877,P19,c(Q56061))
action filter_type
action find
entity Q390877
relation P19
type Q56061
['Q390877', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q390877 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Agata Karczmarek
action filter_type
action find
entity Agata Karczmarek
relation place of birth
type administrative territorial entity
['Agata Karczmarek', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Agata_Karczmarek property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270
SYSTEM
Warsaw
Q270
(Q390877,P19,c(Q56061))
action filter_type
action find
entity Q390877
relation P19
type Q56061
Agata Karczmarek was born in [ANSWER]
['Q390877', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q390877 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Warsaw
Agata Karczmarek was born in Warsaw
Warsaw
action filter_type
action find
entity Agata Karczmarek
relation place of birth
type administrative territorial entity
['Agata Karczmarek', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Agata_Karczmarek property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q270
P30
Q2221906
USER
Which geographic location is that administrative territory located in ?
(Q270,P30,c(Q2221906))
action filter_type
action find
entity Q270
relation P30
type Q2221906
['Q270', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q270 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Warsaw
action filter_type
action find
entity Warsaw
relation continent
type geographic location
['Warsaw', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Warsaw property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q270,P30,c(Q2221906))
action filter_type
action find
entity Q270
relation P30
type Q2221906
That administrative territory is located in [ANSWER]
['Q270', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q270 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Europe
That administrative territory is located in Europe
Europe
action filter_type
action find
entity Warsaw
relation continent
type geographic location
['Warsaw', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Warsaw property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q46 Q3888410
P30
Q56061
USER
Is Berindan a part of that geographic location ?
(Q3888410,P30,Q46)
action is_in
entity Q3888410
action find
entity Q46
relation P30
['Q3888410', 'P30', 'Q46']
ASK WHERE { resource:Q46 property:P30 resource:Q3888410 }
Europe Berindan
action is_in
entity Berindan
action find
entity Europe
relation continent
['Berindan', 'continent', 'Europe']
ASK WHERE { resource:Europe property:continent resource:Berindan }
[]
administrative territorial entity
SYSTEM
NO
(Q3888410,P30,Q46)
action is_in
entity Q3888410
action find
entity Q46
relation P30
[ANSWER]
['Q3888410', 'P30', 'Q46']
ASK WHERE { resource:Q46 property:P30 resource:Q3888410 }
No
action is_in
entity Berindan
action find
entity Europe
relation continent
['Berindan', 'continent', 'Europe']
ASK WHERE { resource:Europe property:continent resource:Berindan }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q46
P610
Q14524493
USER
Which is the highest peak of that geographic location ?
action filter_type
action find
entity Q46
relation P610
type Q14524493
SELECT DISTINCT ?h WHERE { resource:Q46 property:P610 ?h . ?h rdf:type ontology:Q14524493 }
Europe
action filter_type
action find
entity Europe
relation highest point
type terrain
SELECT DISTINCT ?h WHERE { resource:Europe property:highest_point ?h . ?h rdf:type ontology:terrain }
[]
terrain
Q43105
SYSTEM
Mount Elbrus
Q43105
action filter_type
action find
entity Q46
relation P610
type Q14524493
The highest peak of that geographic location is [ANSWER]
SELECT DISTINCT ?h WHERE { resource:Q46 property:P610 ?h . ?h rdf:type ontology:Q14524493 }
Mount Elbrus
The highest peak of that geographic location is Mount Elbrus
Mount Elbrus
action filter_type
action find
entity Europe
relation highest point
type terrain
SELECT DISTINCT ?h WHERE { resource:Europe property:highest_point ?h . ?h rdf:type ontology:terrain }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43105
P138
Q42889
USER
Which vehicle has that terrain as its toponym ?
(c(Q42889),P138,Q43105)
action filter_type
action find_reverse
entity Q43105
relation P138
type Q42889
[{'concept': 'Q42889'}, 'P138', 'Q43105']
SELECT DISTINCT ?n WHERE { ?n property:P138 resource:Q43105 . ?n rdf:type ontology:Q42889 }
Mount Elbrus
action filter_type
action find_reverse
entity Mount Elbrus
relation named after
type vehicle
[{'concept': 'vehicle'}, 'named after', 'Mount Elbrus']
SELECT DISTINCT ?n WHERE { ?n property:named_after resource:Mount_Elbrus . ?n rdf:type ontology:vehicle }
[]
vehicle
Q1968094
SYSTEM
R-17 Elbrus
Q1968094
(c(Q42889),P138,Q43105)
action filter_type
action find_reverse
entity Q43105
relation P138
type Q42889
[ANSWER] has that terrain as its toponym
[{'concept': 'Q42889'}, 'P138', 'Q43105']
SELECT DISTINCT ?n WHERE { ?n property:P138 resource:Q43105 . ?n rdf:type ontology:Q42889 }
R-17 Elbrus
R-17 Elbrus has that terrain as its toponym
R-17 Elbrus
action filter_type
action find_reverse
entity Mount Elbrus
relation named after
type vehicle
[{'concept': 'vehicle'}, 'named after', 'Mount Elbrus']
SELECT DISTINCT ?n WHERE { ?n property:named_after resource:Mount_Elbrus . ?n rdf:type ontology:vehicle }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q46
P30
Q2221906 Q56061 Q337567
USER
Which geographic locations are approximately the same number of administrative territories and still waterss located as Europe ?
(c(Q56061)|c(Q337567),P30,c(Q2221906))
action approx
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q56061
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q337567
action count
action filter_multi_types
action find_reverse
entity Q46
relation P30
type Q56061
type Q337567
[[{'concept': 'Q56061'}, {'concept': 'Q337567'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P30 resource:Q46 . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q337567 } } } } . FILTER ( ?d = ?w ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?d ) WHERE { { ?q property:P30 ?z . ?z rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q56061 } UNION { ?q rdf:type ontology:Q337567 . ?z rdf:type ontology:Q2221906 . ?q property:P30 ?z } } GROUP BY ?z } }
Europe
action approx
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type administrative territorial entity
action find_reverse_tuple_counts
relation continent
type geographic location
type still waters
action count
action filter_multi_types
action find_reverse
entity Europe
relation continent
type administrative territorial entity
type still waters
[[{'concept': 'administrative territorial entity'}, {'concept': 'still waters'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:continent resource:Europe . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:still_waters } } } } . FILTER ( ?d = ?w ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?d ) WHERE { { ?q property:continent ?z . ?z rdf:type ontology:geographic_location . ?q rdf:type ontology:administrative_territorial_entity } UNION { ?q rdf:type ontology:still_waters . ?z rdf:type ontology:geographic_location . ?q property:continent ?z } } GROUP BY ?z } }
[]
geographic location administrative territorial entity still waters
Q46 Q48 Q49
SYSTEM
Europe, Asia, North America
Q46 Q48 Q49
(c(Q56061)|c(Q337567),P30,c(Q2221906))
action approx
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q56061
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q337567
action count
action filter_multi_types
action find_reverse
entity Q46
relation P30
type Q56061
type Q337567
[ANSWERS] are approximately the same number of administrative territories and still waterss located as Europe
[[{'concept': 'Q56061'}, {'concept': 'Q337567'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P30 resource:Q46 . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q337567 } } } } . FILTER ( ?d = ?w ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?d ) WHERE { { ?q property:P30 ?z . ?z rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q56061 } UNION { ?q rdf:type ontology:Q337567 . ?z rdf:type ontology:Q2221906 . ?q property:P30 ?z } } GROUP BY ?z } }
Europe Asia North America
Europe, Asia and North America are approximately the same number of administrative territories and still waterss located as Europe
Europe Asia North America
action approx
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type administrative territorial entity
action find_reverse_tuple_counts
relation continent
type geographic location
type still waters
action count
action filter_multi_types
action find_reverse
entity Europe
relation continent
type administrative territorial entity
type still waters
[[{'concept': 'administrative territorial entity'}, {'concept': 'still waters'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:continent resource:Europe . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:still_waters } } } } . FILTER ( ?d = ?w ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?d ) WHERE { { ?q property:continent ?z . ?z rdf:type ontology:geographic_location . ?q rdf:type ontology:administrative_territorial_entity } UNION { ?q rdf:type ontology:still_waters . ?z rdf:type ontology:geographic_location . ?q property:continent ?z } } GROUP BY ?z } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q538
P30
Q2221906 Q56061 Q337567
USER
And how about Oceania?
(c(Q56061)|c(Q337567),P30,c(Q2221906))
action approx
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q56061
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q337567
action count
action filter_multi_types
action find_reverse
entity Q538
relation P30
type Q56061
type Q337567
[[{'concept': 'Q56061'}, {'concept': 'Q337567'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P30 resource:Q538 . { { ?r rdf:type ontology:Q56061 } UNION { ?r rdf:type ontology:Q337567 } } } } . FILTER ( ?j = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?a WHERE { { ?p property:P30 ?a . ?a rdf:type ontology:Q2221906 . ?p rdf:type ontology:Q337567 } UNION { ?p property:P30 ?a . ?a rdf:type ontology:Q2221906 . ?p rdf:type ontology:Q56061 } } GROUP BY ?a } }
Oceania
action approx
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type administrative territorial entity
action find_reverse_tuple_counts
relation continent
type geographic location
type still waters
action count
action filter_multi_types
action find_reverse
entity Oceania
relation continent
type administrative territorial entity
type still waters
[[{'concept': 'administrative territorial entity'}, {'concept': 'still waters'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:continent resource:Oceania . { { ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r rdf:type ontology:still_waters } } } } . FILTER ( ?j = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?a WHERE { { ?p property:continent ?a . ?a rdf:type ontology:geographic_location . ?p rdf:type ontology:still_waters } UNION { ?p property:continent ?a . ?a rdf:type ontology:geographic_location . ?p rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } }
[]
geographic location administrative territorial entity still waters
Q15 Q49 Q18
SYSTEM
Africa, North America, South America
Q3960 Q828 Q49 Q15 Q5401 Q18 Q538
(c(Q56061)|c(Q337567),P30,c(Q2221906))
action approx
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q56061
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q337567
action count
action filter_multi_types
action find_reverse
entity Q538
relation P30
type Q56061
type Q337567
[ANSWERS]
[[{'concept': 'Q56061'}, {'concept': 'Q337567'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P30 resource:Q538 . { { ?r rdf:type ontology:Q56061 } UNION { ?r rdf:type ontology:Q337567 } } } } . FILTER ( ?j = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?a WHERE { { ?p property:P30 ?a . ?a rdf:type ontology:Q2221906 . ?p rdf:type ontology:Q337567 } UNION { ?p property:P30 ?a . ?a rdf:type ontology:Q2221906 . ?p rdf:type ontology:Q56061 } } GROUP BY ?a } }
Australia Americas North America Africa Eurasia South America Oceania
Africa North America South America
action approx
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type administrative territorial entity
action find_reverse_tuple_counts
relation continent
type geographic location
type still waters
action count
action filter_multi_types
action find_reverse
entity Oceania
relation continent
type administrative territorial entity
type still waters
[[{'concept': 'administrative territorial entity'}, {'concept': 'still waters'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:continent resource:Oceania . { { ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r rdf:type ontology:still_waters } } } } . FILTER ( ?j = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?a WHERE { { ?p property:continent ?a . ?a rdf:type ontology:geographic_location . ?p rdf:type ontology:still_waters } UNION { ?p property:continent ?a . ?a rdf:type ontology:geographic_location . ?p rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q1048835 Q553036 Q2221906
USER
Which geographic locations have their location as max number of political territories or natural region of Germanys ?
(c(Q2221906),P706,c(Q1048835)|c(Q553036))
action argmax
action union
action find_tuple_counts
relation P706
type Q2221906
type Q1048835
action find_tuple_counts
relation P706
type Q2221906
type Q553036
[{'concept': 'Q2221906'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q553036'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) ?e WHERE { ?t rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q553036 ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?p WHERE { ?v rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q553036 ) } } GROUP BY ?p } . FILTER ( ?d = ?c ) }
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type geographic location
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type geographic location
type natural region of Germany
[{'concept': 'geographic location'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'natural region of Germany'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) ?e WHERE { ?t rdf:type ?b . VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:natural_region_of_Germany ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?p WHERE { ?v rdf:type ?y . VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:natural_region_of_Germany ) } } GROUP BY ?p } . FILTER ( ?d = ?c ) }
[]
political territorial entity natural region of Germany geographic location
Q315496 Q21491032 Q1998580
SYSTEM
Upper Harz, Lower Harz, Northern Black Forest
Q315496 Q1998580 Q32530 Q21491032
(c(Q2221906),P706,c(Q1048835)|c(Q553036))
action argmax
action union
action find_tuple_counts
relation P706
type Q2221906
type Q1048835
action find_tuple_counts
relation P706
type Q2221906
type Q553036
[ANSWERS] have their location as max number of political territories or natural region of Germanys
[{'concept': 'Q2221906'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q553036'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) ?e WHERE { ?t rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q553036 ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?p WHERE { ?v rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q553036 ) } } GROUP BY ?p } . FILTER ( ?d = ?c ) }
Upper Harz Northern Black Forest Lusatia Lower Harz
Upper Harz, Lower Harz and Northern Black Forest have their location as max number of political territories or natural region of Germanys
Upper Harz Lower Harz Northern Black Forest
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type geographic location
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type geographic location
type natural region of Germany
[{'concept': 'geographic location'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'natural region of Germany'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) ?e WHERE { ?t rdf:type ?b . VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:natural_region_of_Germany ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?p WHERE { ?v rdf:type ?y . VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:natural_region_of_Germany ) } } GROUP BY ?p } . FILTER ( ?d = ?c ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q21491032
P361
Q553036
USER
Which natural region of Germany is that geographic location a component of ?
(Q21491032,P361,c(Q553036))
action filter_type
action find
entity Q21491032
relation P361
type Q553036
['Q21491032', 'P361', {'concept': 'Q553036'}]
SELECT DISTINCT ?q WHERE { resource:Q21491032 property:P361 ?q . ?q rdf:type ontology:Q553036 }
Lower Harz
action filter_type
action find
entity Lower Harz
relation part of
type natural region of Germany
['Lower Harz', 'part of', {'concept': 'natural region of Germany'}]
SELECT DISTINCT ?q WHERE { resource:Lower_Harz property:part_of ?q . ?q rdf:type ontology:natural_region_of_Germany }
[]
natural region of Germany
Clarification for simple ques.
Q1998580
SYSTEM
Did you mean Northern Black Forest ?
Q315496 Q21491032 Q1998580
(Q315496,P361,c(Q553036)) (Q21491032,P361,c(Q553036)) (Q1998580,P361,c(Q553036))
[ANSWER]
['Q315496', 'P361', {'concept': 'Q553036'}] ['Q21491032', 'P361', {'concept': 'Q553036'}] ['Q1998580', 'P361', {'concept': 'Q553036'}]
SELECT DISTINCT ?q WHERE { resource:Q21491032 property:P361 ?q . ?q rdf:type ontology:Q553036 }
Upper Harz Lower Harz Northern Black Forest
Did you mean Northern Black Forest ?
Northern Black Forest
['Upper Harz', 'part of', {'concept': 'natural region of Germany'}] ['Lower Harz', 'part of', {'concept': 'natural region of Germany'}] ['Northern Black Forest', 'part of', {'concept': 'natural region of Germany'}]
SELECT DISTINCT ?q WHERE { resource:Lower_Harz property:part_of ?q . ?q rdf:type ontology:natural_region_of_Germany }
[]
Simple Question (Coreferenced)
USER
No, I meant Lower Harz. Could you tell me the answer for that?
(Q21491032,P361,c(Q553036))
Q21491032
['Q21491032', 'P361', {'concept': 'Q553036'}]
['Lower Harz', 'part of', {'concept': 'natural region of Germany'}]
[]
Q4186
SYSTEM
Harz
Q4186
(Q21491032,P361,c(Q553036))
action filter_type
action find
entity Q21491032
relation P361
type Q553036
[ANSWER] is that geographic location a component of
['Q21491032', 'P361', {'concept': 'Q553036'}]
SELECT DISTINCT ?q WHERE { resource:Q21491032 property:P361 ?q . ?q rdf:type ontology:Q553036 }
Harz
Harz is that geographic location a component of
Harz
action filter_type
action find
entity Lower Harz
relation part of
type natural region of Germany
['Lower Harz', 'part of', {'concept': 'natural region of Germany'}]
SELECT DISTINCT ?q WHERE { resource:Lower_Harz property:part_of ?q . ?q rdf:type ontology:natural_region_of_Germany }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q4186 Q13492 Q750908
P17
Q1048835
USER
Is that natural region of Germany located in Palau-sator and Lintsi ?
(Q4186,P17,Q13492) (Q4186,P17,Q750908)
action is_in
entity Q4186
action intersection
action find_reverse
entity Q13492
relation P17
action find_reverse
entity Q750908
relation P17
['Q4186', 'P17', 'Q13492'] ['Q4186', 'P17', 'Q750908']
ASK WHERE { resource:Q4186 property:P17 resource:Q13492 . resource:Q4186 property:P17 resource:Q750908 }
Harz Palau-sator Lintsi
action is_in
entity Harz
action intersection
action find_reverse
entity Palau-sator
relation country
action find_reverse
entity Lintsi
relation country
['Harz', 'country', 'Palau-sator'] ['Harz', 'country', 'Lintsi']
ASK WHERE { resource:Harz property:country resource:Palau-sator . resource:Harz property:country resource:Lintsi }
[]
political territorial entity
SYSTEM
NO
(Q4186,P17,Q13492) (Q4186,P17,Q750908)
action is_in
entity Q4186
action intersection
action find_reverse
entity Q13492
relation P17
action find_reverse
entity Q750908
relation P17
[ANSWER]
['Q4186', 'P17', 'Q13492'] ['Q4186', 'P17', 'Q750908']
ASK WHERE { resource:Q4186 property:P17 resource:Q13492 . resource:Q4186 property:P17 resource:Q750908 }
No
action is_in
entity Harz
action intersection
action find_reverse
entity Palau-sator
relation country
action find_reverse
entity Lintsi
relation country
['Harz', 'country', 'Palau-sator'] ['Harz', 'country', 'Lintsi']
ASK WHERE { resource:Harz property:country resource:Palau-sator . resource:Harz property:country resource:Lintsi }
[]