Simple Question (Direct)
Simple Question
Q16230202
P641
Q349
USER
Which sport was Charalampos Kokolis a part of ?
(Q16230202,P641,c(Q349))
action filter_type
action find
entity Q16230202
relation P641
type Q349
['Q16230202', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q16230202 property:P641 ?c . ?c rdf:type ontology:Q349 }
Charalampos Kokolis
action filter_type
action find
entity Charalampos Kokolis
relation sport
type sport
['Charalampos Kokolis', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Charalampos_Kokolis property:sport ?c . ?c rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q16230202,P641,c(Q349))
action filter_type
action find
entity Q16230202
relation P641
type Q349
The [ANSWER] was Charalampos Kokolis a part of
['Q16230202', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q16230202 property:P641 ?c . ?c rdf:type ontology:Q349 }
association football
The association football was Charalampos Kokolis a part of
association football
action filter_type
action find
entity Charalampos Kokolis
relation sport
type sport
['Charalampos Kokolis', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Charalampos_Kokolis property:sport ?c . ?c rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16230202
P19
Q271669
USER
Which landform is the place of birth of that person ?
(Q2736,P19,c(Q271669))
action filter_type
action find
entity Q16230202
relation P19
type Q271669
['Q2736', 'P19', {'concept': 'Q271669'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q271669 . resource:Q16230202 property:P19 ?z }
Charalampos Kokolis
action filter_type
action find
entity Charalampos Kokolis
relation place of birth
type landform
['association football', 'place of birth', {'concept': 'landform'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:landform . resource:Charalampos_Kokolis property:place_of_birth ?z }
[]
landform
Q190138
SYSTEM
Lefkada
Q190138
(Q2736,P19,c(Q271669))
action filter_type
action find
entity Q16230202
relation P19
type Q271669
[ANSWER] is the place of birth of that person
['Q2736', 'P19', {'concept': 'Q271669'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q271669 . resource:Q16230202 property:P19 ?z }
Lefkada
Lefkada is the place of birth of that person
Lefkada
action filter_type
action find
entity Charalampos Kokolis
relation place of birth
type landform
['association football', 'place of birth', {'concept': 'landform'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:landform . resource:Charalampos_Kokolis property:place_of_birth ?z }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q190138 Q41
P17
Q15617994
USER
Is Lefkada located in Greece ?
(Q190138,P17,Q41)
action is_in
entity Q41
action find
entity Q190138
relation P17
['Q190138', 'P17', 'Q41']
ASK WHERE { resource:Q190138 property:P17 resource:Q41 }
Lefkada Greece
action is_in
entity Greece
action find
entity Lefkada
relation country
['Lefkada', 'country', 'Greece']
ASK WHERE { resource:Lefkada property:country resource:Greece }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q190138,P17,Q41)
action is_in
entity Q41
action find
entity Q190138
relation P17
[ANSWER]
['Q190138', 'P17', 'Q41']
ASK WHERE { resource:Q190138 property:P17 resource:Q41 }
Yes
action is_in
entity Greece
action find
entity Lefkada
relation country
['Lefkada', 'country', 'Greece']
ASK WHERE { resource:Lefkada property:country resource:Greece }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q190138
P206
Q15324
USER
Which body of water is located in the neighbourhood of that landform ?
action filter_type
action find
entity Q190138
relation P206
type Q15324
SELECT DISTINCT ?u WHERE { resource:Q190138 property:P206 ?u . ?u rdf:type ontology:Q15324 }
Lefkada
action filter_type
action find
entity Lefkada
relation located next to body of water
type body of water
SELECT DISTINCT ?u WHERE { resource:Lefkada property:located_next_to_body_of_water ?u . ?u rdf:type ontology:body_of_water }
[]
body of water
Q37495
SYSTEM
Ionian Sea
Q37495
action filter_type
action find
entity Q190138
relation P206
type Q15324
Of [ANSWER] is located in the neighbourhood of that landform
SELECT DISTINCT ?u WHERE { resource:Q190138 property:P206 ?u . ?u rdf:type ontology:Q15324 }
Ionian Sea
Of Ionian Sea is located in the neighbourhood of that landform
Ionian Sea
action filter_type
action find
entity Lefkada
relation located next to body of water
type body of water
SELECT DISTINCT ?u WHERE { resource:Lefkada property:located_next_to_body_of_water ?u . ?u rdf:type ontology:body_of_water }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P206
Q15324 Q486972 Q14524493
USER
How many bodies of water are situated in the neighbourhood of more number of human settlements or terrains than that body of water ?
(c(Q486972)|c(Q14524493),P206,c(Q15324))
action count
action greater
action union
action find_reverse_tuple_counts
relation P206
type Q15324
type Q486972
action find_reverse_tuple_counts
relation P206
type Q15324
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q37495
relation P206
type Q486972
type Q14524493
[[{'concept': 'Q486972'}, {'concept': 'Q14524493'}], 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?z ) WHERE { { ?e rdf:type ontology:Q486972 . ?f rdf:type ontology:Q15324 . ?e property:P206 ?f } UNION { ?f rdf:type ontology:Q15324 . ?e rdf:type ontology:Q14524493 . ?e property:P206 ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { ?c rdf:type ?d . VALUES ( ?d ) { ( ontology:Q486972 ) ( ontology:Q14524493 ) } } . ?c property:P206 resource:Q37495 } } . FILTER ( ?z > ?w ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type human settlement
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type terrain
action count
action filter_multi_types
action find_reverse
entity Ionian Sea
relation located next to body of water
type human settlement
type terrain
[[{'concept': 'human settlement'}, {'concept': 'terrain'}], 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?z ) WHERE { { ?e rdf:type ontology:human_settlement . ?f rdf:type ontology:body_of_water . ?e property:located_next_to_body_of_water ?f } UNION { ?f rdf:type ontology:body_of_water . ?e rdf:type ontology:terrain . ?e property:located_next_to_body_of_water ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { ?c rdf:type ?d . VALUES ( ?d ) { ( ontology:human_settlement ) ( ontology:terrain ) } } . ?c property:located_next_to_body_of_water resource:Ionian_Sea } } . FILTER ( ?z > ?w ) }
[]
body of water human settlement terrain
SYSTEM
30
Q2090594 Q1404920 Q4851838 Q889407 Q199479 Q22703608 Q38882 Q76925 Q140290 Q644154 Q938327 Q1971856 Q2879466 Q1693 Q173343 Q700309 Q877785 Q14686 Q44725 Q1383196 Q2879593 Q199436 Q3354931 Q999055 Q34575 Q49364 Q2630311 Q132811 Q213367 Q23406
(c(Q486972)|c(Q14524493),P206,c(Q15324))
action count
action greater
action union
action find_reverse_tuple_counts
relation P206
type Q15324
type Q486972
action find_reverse_tuple_counts
relation P206
type Q15324
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q37495
relation P206
type Q486972
type Q14524493
[ANSWER]
[[{'concept': 'Q486972'}, {'concept': 'Q14524493'}], 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?z ) WHERE { { ?e rdf:type ontology:Q486972 . ?f rdf:type ontology:Q15324 . ?e property:P206 ?f } UNION { ?f rdf:type ontology:Q15324 . ?e rdf:type ontology:Q14524493 . ?e property:P206 ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { ?c rdf:type ?d . VALUES ( ?d ) { ( ontology:Q486972 ) ( ontology:Q14524493 ) } } . ?c property:P206 resource:Q37495 } } . FILTER ( ?z > ?w ) }
Cantabrian Sea Somov Sea Ballona Wetlands Bodega Harbor Solomon Sea Maces Bay Tyrrhenian Sea Venetian Lagoon Bay of Plenty Suisun Bay Cumberland Sound Sea of the Hebrides Kamishak Bay North Sea Weddell Sea Bay of Lübeck New Danube Gulf of Finland Bering Sea Ewiges Meer bay of Bourgneuf Bismarck Sea Hammarby sjö San Pablo Bay Aegean Sea Java Sea Florida Bay Gulf of California Gdańsk Bay Red Sea
30
action count
action greater
action union
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type human settlement
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type terrain
action count
action filter_multi_types
action find_reverse
entity Ionian Sea
relation located next to body of water
type human settlement
type terrain
[[{'concept': 'human settlement'}, {'concept': 'terrain'}], 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?z ) WHERE { { ?e rdf:type ontology:human_settlement . ?f rdf:type ontology:body_of_water . ?e property:located_next_to_body_of_water ?f } UNION { ?f rdf:type ontology:body_of_water . ?e rdf:type ontology:terrain . ?e property:located_next_to_body_of_water ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { ?c rdf:type ?d . VALUES ( ?d ) { ( ontology:human_settlement ) ( ontology:terrain ) } } . ?c property:located_next_to_body_of_water resource:Ionian_Sea } } . FILTER ( ?z > ?w ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6431452 Q16230202
P27
Q15617994
USER
Which administrative territories are Charalampos Kokolis or Koray Karagözoğlu an inhabitant of ?
OR((Q16230202,P27,c(Q15617994)), (Q6431452,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16230202
relation P27
action find
entity Q6431452
relation P27
type Q15617994
{'OR': [['Q16230202', 'P27', {'concept': 'Q15617994'}], ['Q6431452', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?x ) { ( resource:Q16230202 ) ( resource:Q6431452 ) } . ?x property:P27 ?p } . ?p rdf:type ontology:Q15617994 }
Koray Karagözoğlu Charalampos Kokolis
action filter_type
action union
action find
entity Charalampos Kokolis
relation country of citizenship
action find
entity Koray Karagözoğlu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Charalampos Kokolis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Koray Karagözoğlu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?x ) { ( resource:Charalampos_Kokolis ) ( resource:Koray_Karagözoğlu ) } . ?x property:country_of_citizenship ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43 Q41
SYSTEM
Turkey, Greece
Q43 Q41
OR((Q16230202,P27,c(Q15617994)), (Q6431452,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16230202
relation P27
action find
entity Q6431452
relation P27
type Q15617994
[ANSWERS] are Charalampos Kokolis or Koray Karagözoğlu an inhabitant of
{'OR': [['Q16230202', 'P27', {'concept': 'Q15617994'}], ['Q6431452', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?x ) { ( resource:Q16230202 ) ( resource:Q6431452 ) } . ?x property:P27 ?p } . ?p rdf:type ontology:Q15617994 }
Turkey Greece
Turkey and Greece are Charalampos Kokolis or Koray Karagözoğlu an inhabitant of
Turkey Greece
action filter_type
action union
action find
entity Charalampos Kokolis
relation country of citizenship
action find
entity Koray Karagözoğlu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Charalampos Kokolis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Koray Karagözoğlu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?x ) { ( resource:Charalampos_Kokolis ) ( resource:Koray_Karagözoğlu ) } . ?x property:country_of_citizenship ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories are the origin of more number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|Count over More/Less|Single entity type|Clarification
Q41
SYSTEM
Did you mean Greece ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Greece ?
Greece
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Turkey. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q43
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
11
Q668 Q142 Q55 Q145 Q33 Q30 Q34 Q38 Q843 Q17 Q29
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
India France Netherlands United Kingdom Finland United States of America Sweden Italy Pakistan Japan Spain
11
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2594870 Q41
P530 P27
Q1048835
USER
Which political territories have diplomatic relations with Greece or are the native countriesof Wulff D. Rehfus ?
OR((Q41,P530,c(Q1048835)), (Q2594870,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q41
relation P530
action find
entity Q2594870
relation P27
type Q1048835
{'OR': [['Q41', 'P530', {'concept': 'Q1048835'}], ['Q2594870', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q41 property:P530 ?m } UNION { resource:Q2594870 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
Wulff D. Rehfus Greece
action filter_type
action union
action find
entity Greece
relation diplomatic relation
action find
entity Wulff D. Rehfus
relation country of citizenship
type political territorial entity
{'OR': [['Greece', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Wulff D. Rehfus', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Greece property:diplomatic_relation ?m } UNION { resource:Wulff_D._Rehfus property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q41,P530,c(Q1048835)), (Q2594870,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q41
relation P530
action find
entity Q2594870
relation P27
type Q1048835
[ANSWERS] have diplomatic relations with Greece or are the native countriesof Wulff D. Rehfus
{'OR': [['Q41', 'P530', {'concept': 'Q1048835'}], ['Q2594870', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q41 property:P530 ?m } UNION { resource:Q2594870 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany have diplomatic relations with Greece or are the native countriesof Wulff D. Rehfus
Australia Germany
action filter_type
action union
action find
entity Greece
relation diplomatic relation
action find
entity Wulff D. Rehfus
relation country of citizenship
type political territorial entity
{'OR': [['Greece', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Wulff D. Rehfus', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Greece property:diplomatic_relation ?m } UNION { resource:Wulff_D._Rehfus property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2594870
P21
Q290
USER
What is the sex of that person ?
(Q408,P21,c(Q290)) (Q183,P21,c(Q290))
action filter_type
action find
entity Q2594870
relation P21
type Q290
['Q408', 'P21', {'concept': 'Q290'}] ['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q2594870 property:P21 ?g . ?g rdf:type ontology:Q290 }
Wulff D. Rehfus
action filter_type
action find
entity Wulff D. Rehfus
relation gender
type sex
['Australia', 'gender', {'concept': 'sex'}] ['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Wulff_D._Rehfus property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q408,P21,c(Q290)) (Q183,P21,c(Q290))
action filter_type
action find
entity Q2594870
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q408', 'P21', {'concept': 'Q290'}] ['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q2594870 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Wulff D. Rehfus
relation gender
type sex
['Australia', 'gender', {'concept': 'sex'}] ['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Wulff_D._Rehfus property:gender ?g . ?g rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21560097 Q190138
P17
Q15617994
USER
Which administrative territories do Lefkada or Harlösa belong to ?
OR((Q190138,P17,c(Q15617994)), (Q21560097,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q190138
relation P17
action find
entity Q21560097
relation P17
type Q15617994
{'OR': [['Q190138', 'P17', {'concept': 'Q15617994'}], ['Q21560097', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q190138 property:P17 ?t } UNION { resource:Q21560097 property:P17 ?t } } }
Harlösa Lefkada
action filter_type
action union
action find
entity Lefkada
relation country
action find
entity Harlösa
relation country
type designation for an administrative territorial entity
{'OR': [['Lefkada', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Harlösa', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Lefkada property:country ?t } UNION { resource:Harlösa property:country ?t } } }
[]
designation for an administrative territorial entity
Q41 Q34
SYSTEM
Greece, Sweden
Q41 Q34
OR((Q190138,P17,c(Q15617994)), (Q21560097,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q190138
relation P17
action find
entity Q21560097
relation P17
type Q15617994
Lefkada or Harlösa belong to [ANSWERS]
{'OR': [['Q190138', 'P17', {'concept': 'Q15617994'}], ['Q21560097', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q190138 property:P17 ?t } UNION { resource:Q21560097 property:P17 ?t } } }
Greece Sweden
Lefkada or Harlösa belong to Greece and Sweden
Greece Sweden
action filter_type
action union
action find
entity Lefkada
relation country
action find
entity Harlösa
relation country
type designation for an administrative territorial entity
{'OR': [['Lefkada', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Harlösa', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Lefkada property:country ?t } UNION { resource:Harlösa property:country ?t } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q7725634
USER
How many administrative territories are the countries of origin of greater number of collectables and literary works than that administrative territory ?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
designation for an administrative territorial entity collectable literary work
Comparative|Count over More/Less|Mult. entity type|Clarification
Q34
SYSTEM
Did you mean Sweden ?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Did you mean Sweden ?
Sweden
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Greece. Could you tell me the answer for that?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
Q41
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
32
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q252 Q258 Q45 Q159 Q43 Q155 Q33 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q230 Q20 Q27 Q28 Q96 Q17 Q1033 Q298 Q79 Q29
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Israel Peru India Argentina France Netherlands United Kingdom People's Republic of China Indonesia South Africa Portugal Russia Turkey Brazil Finland Belgium United States of America Poland Sweden Philippines Switzerland Italy Georgia Norway Ireland Hungary Mexico Japan Nigeria Chile Egypt Spain
32
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q41
P27
Q56061 Q215380
USER
How many administrative territories and bands are a native of Greece ?
(c(Q56061),P27,Q41) (c(Q215380),P27,Q41)
action count
action union
action filter_type
action find_reverse
entity Q41
relation P27
type Q56061
action filter_type
action find_reverse
entity Q41
relation P27
type Q215380
[{'concept': 'Q56061'}, 'P27', 'Q41'] [{'concept': 'Q215380'}, 'P27', 'Q41']
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f rdf:type ?r . VALUES ( ?r ) { ( ontology:Q56061 ) ( ontology:Q215380 ) } }
Greece
action count
action union
action filter_type
action find_reverse
entity Greece
relation country of citizenship
type administrative territorial entity
action filter_type
action find_reverse
entity Greece
relation country of citizenship
type band
[{'concept': 'administrative territorial entity'}, 'country of citizenship', 'Greece'] [{'concept': 'band'}, 'country of citizenship', 'Greece']
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f rdf:type ?r . VALUES ( ?r ) { ( ontology:administrative_territorial_entity ) ( ontology:band ) } }
[]
administrative territorial entity band
SYSTEM
1 administrative territories and 1 bands
Q6378029 Q12296867
(c(Q56061),P27,Q41) (c(Q215380),P27,Q41)
action count
action union
action filter_type
action find_reverse
entity Q41
relation P27
type Q56061
action filter_type
action find_reverse
entity Q41
relation P27
type Q215380
[ANSWER]
[{'concept': 'Q56061'}, 'P27', 'Q41'] [{'concept': 'Q215380'}, 'P27', 'Q41']
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f rdf:type ?r . VALUES ( ?r ) { ( ontology:Q56061 ) ( ontology:Q215380 ) } }
Katsimihas Brothers Trapezitsa
1 administrative territories and 1 bands
action count
action union
action filter_type
action find_reverse
entity Greece
relation country of citizenship
type administrative territorial entity
action filter_type
action find_reverse
entity Greece
relation country of citizenship
type band
[{'concept': 'administrative territorial entity'}, 'country of citizenship', 'Greece'] [{'concept': 'band'}, 'country of citizenship', 'Greece']
SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f rdf:type ?r . VALUES ( ?r ) { ( ontology:administrative_territorial_entity ) ( ontology:band ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P710
Q1190554
USER
Which events have Sweden as their participant ?
(c(Q1190554),P710,Q34)
action filter_type
action find_reverse
entity Q34
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q34']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q34 . ?b rdf:type ontology:Q1190554 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation participant
type event
[{'concept': 'event'}, 'participant', 'Sweden']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Sweden . ?b rdf:type ontology:event }
[]
event
Q705409 Q541566 Q1606958
SYSTEM
Battle of Helsingborg, Battle of Kolding, Battle of Bogesund
Q3500708 Q705409 Q546505 Q46003 Q138025 Q736268 Q367025 Q155726 Q663359 Q682482 Q541566 Q1606958
(c(Q1190554),P710,Q34)
action filter_type
action find_reverse
entity Q34
relation P710
type Q1190554
[ANSWERS] have Sweden as their participant
[{'concept': 'Q1190554'}, 'P710', 'Q34']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q34 . ?b rdf:type ontology:Q1190554 }
Battle of Stäket Battle of Helsingborg Battle of Stegeborg Battle of Rajovka Siege of Veprik Finnish War Battle of Lena Battle of Narva Battle of Holowczyn Russo-Swedish War Battle of Kolding Battle of Bogesund
Battle of Helsingborg, Battle of Kolding and Battle of Bogesund have Sweden as their participant
Battle of Helsingborg Battle of Kolding Battle of Bogesund
action filter_type
action find_reverse
entity Sweden
relation participant
type event
[{'concept': 'event'}, 'participant', 'Sweden']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Sweden . ?b rdf:type ontology:event }
[]
Clarification
Simple Question|Single Entity|Indirect
Q705409
P1346
Q15617994
USER
Who won that event ?
(Q705409,P1346,c(Q15617994))
action filter_type
action find
entity Q705409
relation P1346
type Q15617994
['Q705409', 'P1346', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q705409 property:P1346 ?x . ?x rdf:type ontology:Q15617994 }
Battle of Helsingborg
action filter_type
action find
entity Battle of Helsingborg
relation winner
type designation for an administrative territorial entity
['Battle of Helsingborg', 'winner', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Battle_of_Helsingborg property:winner ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1606958
SYSTEM
Did you mean Battle of Bogesund ?
Q705409 Q541566 Q1606958
(Q705409,P1346,c(Q15617994)) (Q541566,P1346,c(Q15617994)) (Q1606958,P1346,c(Q15617994))
[ANSWER]
['Q705409', 'P1346', {'concept': 'Q15617994'}] ['Q541566', 'P1346', {'concept': 'Q15617994'}] ['Q1606958', 'P1346', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q705409 property:P1346 ?x . ?x rdf:type ontology:Q15617994 }
Battle of Helsingborg Battle of Kolding Battle of Bogesund
Did you mean Battle of Bogesund ?
Battle of Bogesund
['Battle of Helsingborg', 'winner', {'concept': 'designation for an administrative territorial entity'}] ['Battle of Kolding', 'winner', {'concept': 'designation for an administrative territorial entity'}] ['Battle of Bogesund', 'winner', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Battle_of_Helsingborg property:winner ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Battle of Helsingborg. Could you tell me the answer for that?
(Q705409,P1346,c(Q15617994))
Q705409
['Q705409', 'P1346', {'concept': 'Q15617994'}]
['Battle of Helsingborg', 'winner', {'concept': 'designation for an administrative territorial entity'}]
[]
Q34
SYSTEM
Sweden
Q34
(Q705409,P1346,c(Q15617994))
action filter_type
action find
entity Q705409
relation P1346
type Q15617994
The [ANSWER] won that event
['Q705409', 'P1346', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q705409 property:P1346 ?x . ?x rdf:type ontology:Q15617994 }
Sweden
The Sweden won that event
Sweden
action filter_type
action find
entity Battle of Helsingborg
relation winner
type designation for an administrative territorial entity
['Battle of Helsingborg', 'winner', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Battle_of_Helsingborg property:winner ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]