Simple Question (Direct)
Simple Question
Q4795116
P21
Q290
USER
What is the sex of Arnold Joseph Feusi ?
(Q4795116,P21,c(Q290))
action filter_type
action find
entity Q4795116
relation P21
type Q290
['Q4795116', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q4795116 property:P21 ?p . ?p rdf:type ontology:Q290 }
Arnold Joseph Feusi
action filter_type
action find
entity Arnold Joseph Feusi
relation gender
type sex
['Arnold Joseph Feusi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Arnold_Joseph_Feusi property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4795116,P21,c(Q290))
action filter_type
action find
entity Q4795116
relation P21
type Q290
[ANSWER]
['Q4795116', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q4795116 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Arnold Joseph Feusi
relation gender
type sex
['Arnold Joseph Feusi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Arnold_Joseph_Feusi property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4795116
P20
Q56061
USER
Where did the expiration of Arnold Joseph Feusi occur ?
(Q4795116,P20,c(Q56061))
action filter_type
action find
entity Q4795116
relation P20
type Q56061
['Q4795116', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q4795116 property:P20 ?q }
Arnold Joseph Feusi
action filter_type
action find
entity Arnold Joseph Feusi
relation place of death
type administrative territorial entity
['Arnold Joseph Feusi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Arnold_Joseph_Feusi property:place_of_death ?q }
[]
administrative territorial entity
Q671431
SYSTEM
Prince Albert
Q671431
(Q4795116,P20,c(Q56061))
action filter_type
action find
entity Q4795116
relation P20
type Q56061
[ANSWER]
['Q4795116', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q4795116 property:P20 ?q }
Prince Albert
Prince Albert
action filter_type
action find
entity Arnold Joseph Feusi
relation place of death
type administrative territorial entity
['Arnold Joseph Feusi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Arnold_Joseph_Feusi property:place_of_death ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q671431
P47
Q532
USER
Which village is bordered by that administrative territory ?
(c(Q532),P47,Q671431)
action filter_type
action find_reverse
entity Q671431
relation P47
type Q532
[{'concept': 'Q532'}, 'P47', 'Q671431']
SELECT DISTINCT ?b WHERE { ?b property:P47 resource:Q671431 . ?b rdf:type ontology:Q532 }
Prince Albert
action filter_type
action find_reverse
entity Prince Albert
relation shares border with
type village
[{'concept': 'village'}, 'shares border with', 'Prince Albert']
SELECT DISTINCT ?b WHERE { ?b property:shares_border_with resource:Prince_Albert . ?b rdf:type ontology:village }
[]
village
Q1998292
SYSTEM
Albertville
Q1998292
(c(Q532),P47,Q671431)
action filter_type
action find_reverse
entity Q671431
relation P47
type Q532
[ANSWER]
[{'concept': 'Q532'}, 'P47', 'Q671431']
SELECT DISTINCT ?b WHERE { ?b property:P47 resource:Q671431 . ?b rdf:type ontology:Q532 }
Albertville
Albertville
action filter_type
action find_reverse
entity Prince Albert
relation shares border with
type village
[{'concept': 'village'}, 'shares border with', 'Prince Albert']
SELECT DISTINCT ?b WHERE { ?b property:shares_border_with resource:Prince_Albert . ?b rdf:type ontology:village }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1998292
P17
Q1048835
USER
Which political territory is that village present in ?
(Q1998292,P17,c(Q1048835))
action filter_type
action find
entity Q1998292
relation P17
type Q1048835
['Q1998292', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q1998292 property:P17 ?x . ?x rdf:type ontology:Q1048835 }
Albertville
action filter_type
action find
entity Albertville
relation country
type political territorial entity
['Albertville', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Albertville property:country ?x . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q1998292,P17,c(Q1048835))
action filter_type
action find
entity Q1998292
relation P17
type Q1048835
[ANSWER]
['Q1998292', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q1998292 property:P17 ?x . ?x rdf:type ontology:Q1048835 }
Canada
Canada
action filter_type
action find
entity Albertville
relation country
type political territorial entity
['Albertville', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Albertville property:country ?x . ?x rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q16 Q6485354
P27
Q502895
USER
Is Lane Caffaro a citizen of that political territory ?
(Q6485354,P27,Q16)
action is_in
entity Q16
action find
entity Q6485354
relation P27
['Q6485354', 'P27', 'Q16']
ASK WHERE { resource:Q6485354 property:P27 resource:Q16 }
Canada Lane Caffaro
action is_in
entity Canada
action find
entity Lane Caffaro
relation country of citizenship
['Lane Caffaro', 'country of citizenship', 'Canada']
ASK WHERE { resource:Lane_Caffaro property:country_of_citizenship resource:Canada }
[]
common name
SYSTEM
YES
(Q6485354,P27,Q16)
action is_in
entity Q16
action find
entity Q6485354
relation P27
[ANSWER]
['Q6485354', 'P27', 'Q16']
ASK WHERE { resource:Q6485354 property:P27 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Lane Caffaro
relation country of citizenship
['Lane Caffaro', 'country of citizenship', 'Canada']
ASK WHERE { resource:Lane_Caffaro property:country_of_citizenship resource:Canada }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P915
Q15416
USER
Which television program was filmed in the location that political territory ?
action filter_type
action find_reverse
entity Q16
relation P915
type Q15416
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15416 . ?a property:P915 resource:Q16 }
Canada
action filter_type
action find_reverse
entity Canada
relation filming location
type television program
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:television_program . ?a property:filming_location resource:Canada }
[]
television program
Q1755288
SYSTEM
Higher Ground
Q1755288
action filter_type
action find_reverse
entity Q16
relation P915
type Q15416
[ANSWER]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15416 . ?a property:P915 resource:Q16 }
Higher Ground
Higher Ground
action filter_type
action find_reverse
entity Canada
relation filming location
type television program
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:television_program . ?a property:filming_location resource:Canada }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q8601
P1376
Q1048835 Q20667921 Q56061
USER
How many political territories have more number of french administrative divisions and administrative territories as their capital than Rhein-Lahn-Kreis ?
(c(Q20667921)|c(Q56061),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q8601
relation P1376
type Q20667921
type Q56061
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?o WHERE { { ?q property:P1376 ?o . ?o rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q20667921 } UNION { ?q property:P1376 ?o . ?o rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q56061 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P1376 resource:Q8601 . { VALUES ( ?u ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?p rdf:type ?u } } } . FILTER ( ?l > ?h ) }
Rhein-Lahn-Kreis
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Rhein-Lahn-Kreis
relation capital of
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?o WHERE { { ?q property:capital_of ?o . ?o rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:type_of_french_administrative_division } UNION { ?q property:capital_of ?o . ?o rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:administrative_territorial_entity } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:capital_of resource:Rhein-Lahn-Kreis . { VALUES ( ?u ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?p rdf:type ?u } } } . FILTER ( ?l > ?h ) }
[]
political territorial entity type of french administrative division administrative territorial entity
SYSTEM
3
Q13353 Q193619 Q183
(c(Q20667921)|c(Q56061),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q8601
relation P1376
type Q20667921
type Q56061
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?o WHERE { { ?q property:P1376 ?o . ?o rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q20667921 } UNION { ?q property:P1376 ?o . ?o rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q56061 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P1376 resource:Q8601 . { VALUES ( ?u ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?p rdf:type ?u } } } . FILTER ( ?l > ?h ) }
Montserrat Union of South Africa Germany
3
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Rhein-Lahn-Kreis
relation capital of
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?o WHERE { { ?q property:capital_of ?o . ?o rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:type_of_french_administrative_division } UNION { ?q property:capital_of ?o . ?o rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:administrative_territorial_entity } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:capital_of resource:Rhein-Lahn-Kreis . { VALUES ( ?u ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?p rdf:type ?u } } } . FILTER ( ?l > ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q6321798
P1376
Q1048835 Q20667921 Q56061
USER
And also tell me about Sexi District?
(c(Q20667921)|c(Q56061),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q6321798
relation P1376
type Q20667921
type Q56061
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?r WHERE { { ?u property:P1376 ?r . ?r rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q20667921 } UNION { ?u property:P1376 ?r . ?u rdf:type ontology:Q56061 . ?r rdf:type ontology:Q1048835 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o property:P1376 resource:Q6321798 . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } } } } . FILTER ( ?x > ?l ) }
Sexi District
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Sexi District
relation capital of
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?r WHERE { { ?u property:capital_of ?r . ?r rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:type_of_french_administrative_division } UNION { ?u property:capital_of ?r . ?u rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o property:capital_of resource:Sexi_District . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?x > ?l ) }
[]
political territorial entity type of french administrative division administrative territorial entity
SYSTEM
3
Q13353 Q193619 Q183
(c(Q20667921)|c(Q56061),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q6321798
relation P1376
type Q20667921
type Q56061
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?r WHERE { { ?u property:P1376 ?r . ?r rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q20667921 } UNION { ?u property:P1376 ?r . ?u rdf:type ontology:Q56061 . ?r rdf:type ontology:Q1048835 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o property:P1376 resource:Q6321798 . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } } } } . FILTER ( ?x > ?l ) }
Montserrat Union of South Africa Germany
3
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Sexi District
relation capital of
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?r WHERE { { ?u property:capital_of ?r . ?r rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:type_of_french_administrative_division } UNION { ?u property:capital_of ?r . ?u rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o property:capital_of resource:Sexi_District . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?x > ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q515 Q337567 Q56061
USER
Which administrative territories are the eponym of max number of cities and still waterss ?
(c(Q56061),P138,c(Q515)|c(Q337567))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q515
action find_tuple_counts
relation P138
type Q56061
type Q337567
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q515'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?s ) WHERE { { ?i rdf:type ontology:Q56061 . ?h rdf:type ontology:Q515 . ?i property:P138 ?h } UNION { ?i property:P138 ?h . ?h rdf:type ontology:Q337567 . ?i rdf:type ontology:Q56061 } } GROUP BY ?i } } . { SELECT DISTINCT ?k ( COUNT ( ?r ) AS ?c ) WHERE { { ?k property:P138 ?r . ?k rdf:type ontology:Q56061 . ?r rdf:type ontology:Q515 } UNION { ?k property:P138 ?r . ?r rdf:type ontology:Q337567 . ?k rdf:type ontology:Q56061 } } GROUP BY ?k } . FILTER ( ?c = ?b ) }
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type city
action find_tuple_counts
relation named after
type administrative territorial entity
type still waters
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'city'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?s ) WHERE { { ?i rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:city . ?i property:named_after ?h } UNION { ?i property:named_after ?h . ?h rdf:type ontology:still_waters . ?i rdf:type ontology:administrative_territorial_entity } } GROUP BY ?i } } . { SELECT DISTINCT ?k ( COUNT ( ?r ) AS ?c ) WHERE { { ?k property:named_after ?r . ?k rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:city } UNION { ?k property:named_after ?r . ?r rdf:type ontology:still_waters . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?k } . FILTER ( ?c = ?b ) }
[]
city still waters administrative territorial entity
Q83178 Q12980087 Q11899935
SYSTEM
Almere, Flaten, Vaalajärvi
Q83178 Q18682030 Q11899935 Q11870465 Q18659914 Q12980087 Q3053020 Q11901984 Q2879005 Q11873198 Q11901400
(c(Q56061),P138,c(Q515)|c(Q337567))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q515
action find_tuple_counts
relation P138
type Q56061
type Q337567
[ANSWERS]
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q515'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?s ) WHERE { { ?i rdf:type ontology:Q56061 . ?h rdf:type ontology:Q515 . ?i property:P138 ?h } UNION { ?i property:P138 ?h . ?h rdf:type ontology:Q337567 . ?i rdf:type ontology:Q56061 } } GROUP BY ?i } } . { SELECT DISTINCT ?k ( COUNT ( ?r ) AS ?c ) WHERE { { ?k property:P138 ?r . ?k rdf:type ontology:Q56061 . ?r rdf:type ontology:Q515 } UNION { ?k property:P138 ?r . ?r rdf:type ontology:Q337567 . ?k rdf:type ontology:Q56061 } } GROUP BY ?k } . FILTER ( ?c = ?b ) }
Almere Kivijärvi Vaalajärvi Kauhajärvi Kauhajärvi Flaten Emmer-Compascuum Vuontisjärvi Bagdad Kuivasjärvi Vikajärvi
Almere Flaten Vaalajärvi
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type city
action find_tuple_counts
relation named after
type administrative territorial entity
type still waters
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'city'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?s ) WHERE { { ?i rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:city . ?i property:named_after ?h } UNION { ?i property:named_after ?h . ?h rdf:type ontology:still_waters . ?i rdf:type ontology:administrative_territorial_entity } } GROUP BY ?i } } . { SELECT DISTINCT ?k ( COUNT ( ?r ) AS ?c ) WHERE { { ?k property:named_after ?r . ?k rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:city } UNION { ?k property:named_after ?r . ?r rdf:type ontology:still_waters . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?k } . FILTER ( ?c = ?b ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q83178 Q12980087 Q11899935
P138
Q337567
USER
Which still waterss are namesakes of Almere, Flaten and Vaalajärvi ?
(Q83178,P138,c(Q337567)) (Q12980087,P138,c(Q337567)) (Q11899935,P138,c(Q337567))
action union
action filter_type
action find
entity Q83178
relation P138
type Q337567
action filter_type
action find
entity Q12980087
relation P138
type Q337567
action filter_type
action find
entity Q11899935
relation P138
type Q337567
['Q83178', 'P138', {'concept': 'Q337567'}] ['Q12980087', 'P138', {'concept': 'Q337567'}] ['Q11899935', 'P138', {'concept': 'Q337567'}]
SELECT DISTINCT ?z WHERE { { resource:Q83178 property:P138 ?z . ?z rdf:type ontology:Q337567 } UNION { resource:Q12980087 property:P138 ?z . ?z rdf:type ontology:Q337567 } }
Almere Flaten Vaalajärvi
action union
action filter_type
action find
entity Almere
relation named after
type still waters
action filter_type
action find
entity Flaten
relation named after
type still waters
action filter_type
action find
entity Vaalajärvi
relation named after
type still waters
['Almere', 'named after', {'concept': 'still waters'}] ['Flaten', 'named after', {'concept': 'still waters'}] ['Vaalajärvi', 'named after', {'concept': 'still waters'}]
SELECT DISTINCT ?z WHERE { { resource:Almere property:named_after ?z . ?z rdf:type ontology:still_waters } UNION { resource:Flaten property:named_after ?z . ?z rdf:type ontology:still_waters } }
[]
still waters
Q1552345 Q12979759 Q7362220
SYSTEM
Almere, Flaten, Vaalajärvi
Q1552345 Q12979759 Q7362220
(Q83178,P138,c(Q337567)) (Q12980087,P138,c(Q337567)) (Q11899935,P138,c(Q337567))
action union
action filter_type
action find
entity Q83178
relation P138
type Q337567
action filter_type
action find
entity Q12980087
relation P138
type Q337567
action filter_type
action find
entity Q11899935
relation P138
type Q337567
[ANSWERS]
['Q83178', 'P138', {'concept': 'Q337567'}] ['Q12980087', 'P138', {'concept': 'Q337567'}] ['Q11899935', 'P138', {'concept': 'Q337567'}]
SELECT DISTINCT ?z WHERE { { resource:Q83178 property:P138 ?z . ?z rdf:type ontology:Q337567 } UNION { resource:Q12980087 property:P138 ?z . ?z rdf:type ontology:Q337567 } }
Almere Flaten Vaalajärvi
Almere Flaten Vaalajärvi
action union
action filter_type
action find
entity Almere
relation named after
type still waters
action filter_type
action find
entity Flaten
relation named after
type still waters
action filter_type
action find
entity Vaalajärvi
relation named after
type still waters
['Almere', 'named after', {'concept': 'still waters'}] ['Flaten', 'named after', {'concept': 'still waters'}] ['Vaalajärvi', 'named after', {'concept': 'still waters'}]
SELECT DISTINCT ?z WHERE { { resource:Almere property:named_after ?z . ?z rdf:type ontology:still_waters } UNION { resource:Flaten property:named_after ?z . ?z rdf:type ontology:still_waters } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1552345 Q12979759 Q7362220
P138
Q56061
USER
Which administrative territories are named after Almere, Flaten and Vaalajärvi ?
(c(Q56061),P138,Q1552345) (c(Q56061),P138,Q12979759) (c(Q56061),P138,Q7362220)
action union
action filter_type
action find_reverse
entity Q1552345
relation P138
type Q56061
action filter_type
action find_reverse
entity Q12979759
relation P138
type Q56061
action filter_type
action find_reverse
entity Q7362220
relation P138
type Q56061
[{'concept': 'Q56061'}, 'P138', 'Q1552345'] [{'concept': 'Q56061'}, 'P138', 'Q12979759'] [{'concept': 'Q56061'}, 'P138', 'Q7362220']
SELECT DISTINCT ?u WHERE { { ?u property:P138 resource:Q1552345 . ?u rdf:type ontology:Q56061 } UNION { ?u property:P138 resource:Q12979759 . ?u rdf:type ontology:Q56061 } }
Almere Flaten Vaalajärvi
action union
action filter_type
action find_reverse
entity Almere
relation named after
type administrative territorial entity
action filter_type
action find_reverse
entity Flaten
relation named after
type administrative territorial entity
action filter_type
action find_reverse
entity Vaalajärvi
relation named after
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'Almere'] [{'concept': 'administrative territorial entity'}, 'named after', 'Flaten'] [{'concept': 'administrative territorial entity'}, 'named after', 'Vaalajärvi']
SELECT DISTINCT ?u WHERE { { ?u property:named_after resource:Almere . ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u property:named_after resource:Flaten . ?u rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q83178 Q12980087 Q11899935
SYSTEM
Almere, Flaten, Vaalajärvi
Q83178 Q12980087 Q11899935
(c(Q56061),P138,Q1552345) (c(Q56061),P138,Q12979759) (c(Q56061),P138,Q7362220)
action union
action filter_type
action find_reverse
entity Q1552345
relation P138
type Q56061
action filter_type
action find_reverse
entity Q12979759
relation P138
type Q56061
action filter_type
action find_reverse
entity Q7362220
relation P138
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P138', 'Q1552345'] [{'concept': 'Q56061'}, 'P138', 'Q12979759'] [{'concept': 'Q56061'}, 'P138', 'Q7362220']
SELECT DISTINCT ?u WHERE { { ?u property:P138 resource:Q1552345 . ?u rdf:type ontology:Q56061 } UNION { ?u property:P138 resource:Q12979759 . ?u rdf:type ontology:Q56061 } }
Almere Flaten Vaalajärvi
Almere Flaten Vaalajärvi
action union
action filter_type
action find_reverse
entity Almere
relation named after
type administrative territorial entity
action filter_type
action find_reverse
entity Flaten
relation named after
type administrative territorial entity
action filter_type
action find_reverse
entity Vaalajärvi
relation named after
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'Almere'] [{'concept': 'administrative territorial entity'}, 'named after', 'Flaten'] [{'concept': 'administrative territorial entity'}, 'named after', 'Vaalajärvi']
SELECT DISTINCT ?u WHERE { { ?u property:named_after resource:Almere . ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u property:named_after resource:Flaten . ?u rdf:type ontology:administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q12980087
P361
Q914262
USER
What is that administrative territory a portion of ?
(Q12980087,P361,c(Q914262))
action filter_type
action find
entity Q12980087
relation P361
type Q914262
['Q12980087', 'P361', {'concept': 'Q914262'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q914262 . resource:Q12980087 property:P361 ?y }
Flaten
action filter_type
action find
entity Flaten
relation part of
type administrative territorial entity of Sweden
['Flaten', 'part of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity_of_Sweden . resource:Flaten property:part_of ?y }
[]
administrative territorial entity of Sweden
Clarification for simple ques.
Q12980087
SYSTEM
Did you mean Flaten ?
Q83178 Q12980087 Q11899935
(Q83178,P361,c(Q914262)) (Q12980087,P361,c(Q914262)) (Q11899935,P361,c(Q914262))
[ANSWER]
['Q83178', 'P361', {'concept': 'Q914262'}] ['Q12980087', 'P361', {'concept': 'Q914262'}] ['Q11899935', 'P361', {'concept': 'Q914262'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q914262 . resource:Q12980087 property:P361 ?y }
Almere Flaten Vaalajärvi
Did you mean Flaten ?
Flaten
['Almere', 'part of', {'concept': 'administrative territorial entity of Sweden'}] ['Flaten', 'part of', {'concept': 'administrative territorial entity of Sweden'}] ['Vaalajärvi', 'part of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity_of_Sweden . resource:Flaten property:part_of ?y }
[]
Simple Question (Coreferenced)
USER
Yes
(Q12980087,P361,c(Q914262))
['Q12980087', 'P361', {'concept': 'Q914262'}]
['Flaten', 'part of', {'concept': 'administrative territorial entity of Sweden'}]
[]
Q779963
SYSTEM
Skarpnäck city district
Q779963
(Q12980087,P361,c(Q914262))
action filter_type
action find
entity Q12980087
relation P361
type Q914262
[ANSWER]
['Q12980087', 'P361', {'concept': 'Q914262'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q914262 . resource:Q12980087 property:P361 ?y }
Skarpnäck city district
Skarpnäck city district
action filter_type
action find
entity Flaten
relation part of
type administrative territorial entity of Sweden
['Flaten', 'part of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity_of_Sweden . resource:Flaten property:part_of ?y }
[]