Simple Question (Direct)
Simple Question
Q15870018
P641
Q349
USER
Which sport was Andy Kawaya a part of ?
(Q15870018,P641,c(Q349))
action filter_type
action find
entity Q15870018
relation P641
type Q349
['Q15870018', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q15870018 property:P641 ?e . ?e rdf:type ontology:Q349 }
Andy Kawaya
action filter_type
action find
entity Andy Kawaya
relation sport
type sport
['Andy Kawaya', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Andy_Kawaya property:sport ?e . ?e rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q15870018,P641,c(Q349))
action filter_type
action find
entity Q15870018
relation P641
type Q349
Which sport was Andy Kawaya a part of
['Q15870018', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q15870018 property:P641 ?e . ?e rdf:type ontology:Q349 }
association football
Which sport was Andy Kawaya a part of
association football
action filter_type
action find
entity Andy Kawaya
relation sport
type sport
['Andy Kawaya', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Andy_Kawaya property:sport ?e . ?e rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15870018
P19
Q1048835
USER
Which political territory is the birthplace of Andy Kawaya ?
(Q15870018,P19,c(Q1048835))
action filter_type
action find
entity Q15870018
relation P19
type Q1048835
['Q15870018', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q15870018 property:P19 ?q . ?q rdf:type ontology:Q1048835 }
Andy Kawaya
action filter_type
action find
entity Andy Kawaya
relation place of birth
type political territorial entity
['Andy Kawaya', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Andy_Kawaya property:place_of_birth ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q240
SYSTEM
Brussels
Q240
(Q15870018,P19,c(Q1048835))
action filter_type
action find
entity Q15870018
relation P19
type Q1048835
[ANSWER] is the birthplace of Andy Kawaya
['Q15870018', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q15870018 property:P19 ?q . ?q rdf:type ontology:Q1048835 }
Brussels
Brussels is the birthplace of Andy Kawaya
Brussels
action filter_type
action find
entity Andy Kawaya
relation place of birth
type political territorial entity
['Andy Kawaya', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Andy_Kawaya property:place_of_birth ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q240
P47
Q1048835
USER
Which political territories do that one share a border with ?
(c(Q1048835),P47,Q240)
action filter_type
action find_reverse
entity Q240
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q240']
SELECT DISTINCT ?p WHERE { ?p property:P47 resource:Q240 . ?p rdf:type ontology:Q1048835 }
Brussels
action filter_type
action find_reverse
entity Brussels
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Brussels']
SELECT DISTINCT ?p WHERE { ?p property:shares_border_with resource:Brussels . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q234 Q9337
SYSTEM
Flemish Region, Flemish Region
Q234 Q9337
(c(Q1048835),P47,Q240)
action filter_type
action find_reverse
entity Q240
relation P47
type Q1048835
That one share a border with the [ANSWERS]
[{'concept': 'Q1048835'}, 'P47', 'Q240']
SELECT DISTINCT ?p WHERE { ?p property:P47 resource:Q240 . ?p rdf:type ontology:Q1048835 }
Flemish Region Flemish Region
That one share a border with the Flemish Region and Flemish Region
Flemish Region Flemish Region
action filter_type
action find_reverse
entity Brussels
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Brussels']
SELECT DISTINCT ?p WHERE { ?p property:shares_border_with resource:Brussels . ?p rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q962
P530
Q15617994 Q1048835
USER
Which administrative territories holds diplomatic relationship with lesser number of political territories than Benin ?
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q962
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Q962 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:P530 ?m . ?h rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } }
Benin
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Benin
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Benin property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:diplomatic_relation ?m . ?h rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q962
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with lesser number of political territories than Benin
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Q962 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:P530 ?m . ?h rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen, Syria and Oman hold diplomatic relationship with lesser number of political territories than Benin
Yemen Syria Oman
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Benin
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Benin property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:diplomatic_relation ?m . ?h rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q805
P1376
Q56061
USER
Which administrative territories are the county seat of that administrative territory ?
(c(Q56061),P1376,Q805)
action filter_type
action find_reverse
entity Q805
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q805']
SELECT DISTINCT ?p WHERE { ?p property:P1376 resource:Q805 . ?p rdf:type ontology:Q56061 }
Yemen
action filter_type
action find_reverse
entity Yemen
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Yemen']
SELECT DISTINCT ?p WHERE { ?p property:capital_of resource:Yemen . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q805
SYSTEM
Did you mean Yemen ?
Q805 Q858 Q842
(c(Q56061),P1376,Q805) (c(Q56061),P1376,Q858) (c(Q56061),P1376,Q842)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q805'] [{'concept': 'Q56061'}, 'P1376', 'Q858'] [{'concept': 'Q56061'}, 'P1376', 'Q842']
SELECT DISTINCT ?p WHERE { ?p property:P1376 resource:Q805 . ?p rdf:type ontology:Q56061 }
Yemen Syria Oman
Did you mean Yemen ?
Yemen
[{'concept': 'administrative territorial entity'}, 'capital of', 'Yemen'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Syria'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Oman']
SELECT DISTINCT ?p WHERE { ?p property:capital_of resource:Yemen . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q56061),P1376,Q805)
[{'concept': 'Q56061'}, 'P1376', 'Q805']
[{'concept': 'administrative territorial entity'}, 'capital of', 'Yemen']
[]
Q2471 Q131694
SYSTEM
Sana‘a, Aden
Q2471 Q131694
(c(Q56061),P1376,Q805)
action filter_type
action find_reverse
entity Q805
relation P1376
type Q56061
[ANSWERS] are the county seat of that administrative territory
[{'concept': 'Q56061'}, 'P1376', 'Q805']
SELECT DISTINCT ?p WHERE { ?p property:P1376 resource:Q805 . ?p rdf:type ontology:Q56061 }
Sana‘a Aden
Sana‘a and Aden are the county seat of that administrative territory
Sana‘a Aden
action filter_type
action find_reverse
entity Yemen
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Yemen']
SELECT DISTINCT ?p WHERE { ?p property:capital_of resource:Yemen . ?p rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3488904
P159
Q22687
USER
Do Sogebank have headquarters located at those administrative territories ?
(Q3488904,P159,Q2471) (Q3488904,P159,Q131694)
action is_in
entity prev_answer
action find
entity Q3488904
relation P159
['Q3488904', 'P159', 'Q2471'] ['Q3488904', 'P159', 'Q131694']
ASK WHERE { VALUES ( ?k ) { ( resource:Q2471 ) ( resource:Q131694 ) } . resource:Q3488904 property:P159 ?k }
Sogebank
action is_in
entity prev_answer
action find
entity Sogebank
relation headquarters location
['Sogebank', 'headquarters location', 'Sana‘a'] ['Sogebank', 'headquarters location', 'Aden']
ASK WHERE { VALUES ( ?k ) { ( resource:Sana‘a ) ( resource:Aden ) } . resource:Sogebank property:headquarters_location ?k }
[]
bank
SYSTEM
NO
(Q3488904,P159,Q2471) (Q3488904,P159,Q131694)
action is_in
entity prev_answer
action find
entity Q3488904
relation P159
[ANSWER]
['Q3488904', 'P159', 'Q2471'] ['Q3488904', 'P159', 'Q131694']
ASK WHERE { VALUES ( ?k ) { ( resource:Q2471 ) ( resource:Q131694 ) } . resource:Q3488904 property:P159 ?k }
No
action is_in
entity prev_answer
action find
entity Sogebank
relation headquarters location
['Sogebank', 'headquarters location', 'Sana‘a'] ['Sogebank', 'headquarters location', 'Aden']
ASK WHERE { VALUES ( ?k ) { ( resource:Sana‘a ) ( resource:Aden ) } . resource:Sogebank property:headquarters_location ?k }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q805 Q52536
P530
Q15617994
USER
Does Brindisi Montagna have diplomatic relationships with Yemen ?
(Q805,P530,Q52536)
action is_in
entity Q52536
action find
entity Q805
relation P530
['Q805', 'P530', 'Q52536']
ASK WHERE { resource:Q805 property:P530 resource:Q52536 }
Yemen Brindisi Montagna
action is_in
entity Brindisi Montagna
action find
entity Yemen
relation diplomatic relation
['Yemen', 'diplomatic relation', 'Brindisi Montagna']
ASK WHERE { resource:Yemen property:diplomatic_relation resource:Brindisi_Montagna }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q805,P530,Q52536)
action is_in
entity Q52536
action find
entity Q805
relation P530
[ANSWER]
['Q805', 'P530', 'Q52536']
ASK WHERE { resource:Q805 property:P530 resource:Q52536 }
No
action is_in
entity Brindisi Montagna
action find
entity Yemen
relation diplomatic relation
['Yemen', 'diplomatic relation', 'Brindisi Montagna']
ASK WHERE { resource:Yemen property:diplomatic_relation resource:Brindisi_Montagna }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q9337 Q507194
P17
Q15617994
USER
Is Flemish Region present in Friedberg ?
(Q9337,P17,Q507194)
action is_in
entity Q507194
action find
entity Q9337
relation P17
['Q9337', 'P17', 'Q507194']
ASK WHERE { resource:Q9337 property:P17 resource:Q507194 }
Flemish Region Friedberg
action is_in
entity Friedberg
action find
entity Flemish Region
relation country
['Flemish Region', 'country', 'Friedberg']
ASK WHERE { resource:Flemish_Region property:country resource:Friedberg }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q9337,P17,Q507194)
action is_in
entity Q507194
action find
entity Q9337
relation P17
[ANSWER]
['Q9337', 'P17', 'Q507194']
ASK WHERE { resource:Q9337 property:P17 resource:Q507194 }
No
action is_in
entity Friedberg
action find
entity Flemish Region
relation country
['Flemish Region', 'country', 'Friedberg']
ASK WHERE { resource:Flemish_Region property:country resource:Friedberg }
[]