Simple Question (Direct)
Simple Question
Q826881
P27
Q1048835
USER
Which political territory is Bernt Rhotert an inhabitant of ?
(Q826881,P27,c(Q1048835))
action filter_type
action find
entity Q826881
relation P27
type Q1048835
['Q826881', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q826881 property:P27 ?u }
Bernt Rhotert
action filter_type
action find
entity Bernt Rhotert
relation country of citizenship
type political territorial entity
['Bernt Rhotert', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Bernt_Rhotert property:country_of_citizenship ?u }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q826881,P27,c(Q1048835))
action filter_type
action find
entity Q826881
relation P27
type Q1048835
[ANSWER] is Bernt Rhotert an inhabitant of
['Q826881', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q826881 property:P27 ?u }
Germany
Germany is Bernt Rhotert an inhabitant of
Germany
action filter_type
action find
entity Bernt Rhotert
relation country of citizenship
type political territorial entity
['Bernt Rhotert', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Bernt_Rhotert property:country_of_citizenship ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826881
P106
Q28640
USER
What are the job of Bernt Rhotert ?
(Q826881,P106,c(Q28640))
action filter_type
action find
entity Q826881
relation P106
type Q28640
['Q826881', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?u WHERE { resource:Q826881 property:P106 ?u . ?u rdf:type ontology:Q28640 }
Bernt Rhotert
action filter_type
action find
entity Bernt Rhotert
relation occupation
type profession
['Bernt Rhotert', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?u WHERE { resource:Bernt_Rhotert property:occupation ?u . ?u rdf:type ontology:profession }
[]
profession
Q3282637 Q28389
SYSTEM
film producer, screenwriter
Q3282637 Q28389
(Q826881,P106,c(Q28640))
action filter_type
action find
entity Q826881
relation P106
type Q28640
The job of Bernt Rhotert are a [ANSWERS]
['Q826881', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?u WHERE { resource:Q826881 property:P106 ?u . ?u rdf:type ontology:Q28640 }
film producer screenwriter
The job of Bernt Rhotert are a film producer and screenwriter
film producer screenwriter
action filter_type
action find
entity Bernt Rhotert
relation occupation
type profession
['Bernt Rhotert', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?u WHERE { resource:Bernt_Rhotert property:occupation ?u . ?u rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826881
P19
Q486972
USER
Which human settlement was Bernt Rhotert born in ?
(Q826881,P19,c(Q486972))
action filter_type
action find
entity Q826881
relation P19
type Q486972
['Q826881', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { resource:Q826881 property:P19 ?y . ?y rdf:type ontology:Q486972 }
Bernt Rhotert
action filter_type
action find
entity Bernt Rhotert
relation place of birth
type human settlement
['Bernt Rhotert', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { resource:Bernt_Rhotert property:place_of_birth ?y . ?y rdf:type ontology:human_settlement }
[]
human settlement
Q1799
SYSTEM
Wrocław
Q1799
(Q826881,P19,c(Q486972))
action filter_type
action find
entity Q826881
relation P19
type Q486972
Bernt Rhotert was born in [ANSWER]
['Q826881', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { resource:Q826881 property:P19 ?y . ?y rdf:type ontology:Q486972 }
Wrocław
Bernt Rhotert was born in Wrocław
Wrocław
action filter_type
action find
entity Bernt Rhotert
relation place of birth
type human settlement
['Bernt Rhotert', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { resource:Bernt_Rhotert property:place_of_birth ?y . ?y rdf:type ontology:human_settlement }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1582522
Q486972
USER
And what about Hans Siemens?
(Q1582522,P19,c(Q486972))
action filter_type
action find
entity Q1582522
relation P19
type Q486972
['Q1582522', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?w WHERE { resource:Q1582522 property:P19 ?w . ?w rdf:type ontology:Q486972 }
Hans Siemens
action filter_type
action find
entity Hans Siemens
relation place of birth
type human settlement
['Hans Siemens', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?w WHERE { resource:Hans_Siemens property:place_of_birth ?w . ?w rdf:type ontology:human_settlement }
[]
human settlement
Q1818291
SYSTEM
Lenthe
Q1818291
(Q1582522,P19,c(Q486972))
action filter_type
action find
entity Q1582522
relation P19
type Q486972
[ANSWER]
['Q1582522', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?w WHERE { resource:Q1582522 property:P19 ?w . ?w rdf:type ontology:Q486972 }
Lenthe
Lenthe
action filter_type
action find
entity Hans Siemens
relation place of birth
type human settlement
['Hans Siemens', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?w WHERE { resource:Hans_Siemens property:place_of_birth ?w . ?w rdf:type ontology:human_settlement }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q244380 Q1582522
P27
Q1048835
USER
Which political territories do Hans Siemens or Saint Denis belong to ?
OR((Q1582522,P27,c(Q1048835)), (Q244380,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1582522
relation P27
action find
entity Q244380
relation P27
type Q1048835
{'OR': [['Q1582522', 'P27', {'concept': 'Q1048835'}], ['Q244380', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1582522 property:P27 ?k } UNION { resource:Q244380 property:P27 ?k } } . ?k rdf:type ontology:Q1048835 }
Saint Denis Hans Siemens
action filter_type
action union
action find
entity Hans Siemens
relation country of citizenship
action find
entity Saint Denis
relation country of citizenship
type political territorial entity
{'OR': [['Hans Siemens', 'country of citizenship', {'concept': 'political territorial entity'}], ['Saint Denis', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Hans_Siemens property:country_of_citizenship ?k } UNION { resource:Saint_Denis property:country_of_citizenship ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1747689 Q183
SYSTEM
Ancient Rome, Germany
Q1747689 Q183
OR((Q1582522,P27,c(Q1048835)), (Q244380,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1582522
relation P27
action find
entity Q244380
relation P27
type Q1048835
Hans Siemens or Saint Denis belong to [ANSWERS]
{'OR': [['Q1582522', 'P27', {'concept': 'Q1048835'}], ['Q244380', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1582522 property:P27 ?k } UNION { resource:Q244380 property:P27 ?k } } . ?k rdf:type ontology:Q1048835 }
Ancient Rome Germany
Hans Siemens or Saint Denis belong to Ancient Rome and Germany
Ancient Rome Germany
action filter_type
action union
action find
entity Hans Siemens
relation country of citizenship
action find
entity Saint Denis
relation country of citizenship
type political territorial entity
{'OR': [['Hans Siemens', 'country of citizenship', {'concept': 'political territorial entity'}], ['Saint Denis', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Hans_Siemens property:country_of_citizenship ?k } UNION { resource:Saint_Denis property:country_of_citizenship ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories holds diplomatic relationship with exactly 2 administrative territories and political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) ?v WHERE { { ?z property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } UNION { ?z property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } } GROUP BY ?v } . FILTER ( ?e = 2 ) }
action equal
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) ?v WHERE { { ?z property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?z property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } } GROUP BY ?v } . FILTER ( ?e = 2 ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[ANSWERS] hold diplomatic relationship with exactly 2 administrative territories and political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) ?v WHERE { { ?z property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } UNION { ?z property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } } GROUP BY ?v } . FILTER ( ?e = 2 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas hold diplomatic relationship with exactly 2 administrative territories and political territories
Gabon Grenada The Bahamas
action equal
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) ?v WHERE { { ?z property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?z property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } } GROUP BY ?v } . FILTER ( ?e = 2 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1000 Q769 Q778
P17
Q271669
USER
Which landforms are located in those political territories ?
(c(Q271669),P17,Q1000) (c(Q271669),P17,Q769) (c(Q271669),P17,Q778)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q271669
[{'concept': 'Q271669'}, 'P17', 'Q1000'] [{'concept': 'Q271669'}, 'P17', 'Q769'] [{'concept': 'Q271669'}, 'P17', 'Q778']
SELECT DISTINCT ?k WHERE { ?k property:P17 ?c . VALUES ( ?c ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } . ?k rdf:type ontology:Q271669 }
Gabon Grenada The Bahamas
action filter_type
action find_reverse
entity prev_answer
relation country
type landform
[{'concept': 'landform'}, 'country', 'Gabon'] [{'concept': 'landform'}, 'country', 'Grenada'] [{'concept': 'landform'}, 'country', 'The Bahamas']
SELECT DISTINCT ?k WHERE { ?k property:country ?c . VALUES ( ?c ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } . ?k rdf:type ontology:landform }
[]
landform
Q3116419 Q503482 Q5180214
SYSTEM
Grenada, Grenadines, Crab Cay
Q6918899 Q3469809 Q389978 Q795647 Q7634867 Q3116419 Q503482 Q3217904 Q967714 Q5017538 Q3593061 Q15186654 Q7111449 Q21712642 Q1232322 Q4766905 Q21713767 Q21713937 Q10769613 Q866345 Q514070 Q5289314 Q1967728 Q14214295 Q1512796 Q21712906 Q6746110 Q14220885 Q6746195 Q5599367 Q5600038 Q8024119 Q3181503 Q304371 Q7193206 Q2154808 Q5599274 Q5672275 Q5180214 Q5158415 Q3125943 Q4929318 Q3249446 Q4419081 Q1738882 Q999988 Q14216657 Q14430105 Q14220677 Q2702345 Q21712459 Q1859950 Q7621520 Q1999825 Q3269251 Q5877399 Q1143658 Q6941213 Q14206632 Q1141700 Q4815624 Q6652471 Q21713043 Q7618091 Q11680631 Q16873824 Q21713038 Q21713647 Q858513 Q3115948 Q1540098 Q5137680 Q21712746 Q10645506
(c(Q271669),P17,Q1000) (c(Q271669),P17,Q769) (c(Q271669),P17,Q778)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q271669
[ANSWERS] are located in those political territories
[{'concept': 'Q271669'}, 'P17', 'Q1000'] [{'concept': 'Q271669'}, 'P17', 'Q769'] [{'concept': 'Q271669'}, 'P17', 'Q778']
SELECT DISTINCT ?k WHERE { ?k property:P17 ?c . VALUES ( ?c ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } . ?k rdf:type ontology:Q271669 }
Mougambi Saline Island Ronde Island Carriacou Island Sugar Loaf Island Grenada Grenadines Large Island Petite Martinique Caille Island Diamond Island Arawak Cay Out Islands Poison Point Long Cay Anna Cay Cave Cay Elbow Cays Elbow Cay Grand Bahama Andros, Bahamas Dolly's Cay Egg Island Little Abaco Walker's Cay Statira Shoal Man-O-War Cay Staniel Cay Man Island Great Isaac Cay, Bahamas Great Stirrup Cay Windermere Island Paradise Island Abaco Islands Pig Beach Rose Island Great Guana Cay Great Harbour Cay Crab Cay Conception Island, Bahamas Little San Salvador Island Blue Lagoon Island Green Turtle Cay Seal Cay Samana Cay Castaway Cay North Bimini Little Exuma South Bimini Moore's Island Matanilla Shoal Rum Cay Stranger Cay Norman's Cay Lyford Cay Hogsty Reef Little Inagua Musha Cay Chub Cay Eleuthera Athol Island Little Whale Cay White Cay Stocking Island Joulter Cays Iron Cay White Bay Cay Big Crab Cay New Providence Great Exuma Mayaguana Coakley Cay Cay Sal Little Stirrup Cay
Grenada, Grenadines and Crab Cay are located in those political territories
Grenada Grenadines Crab Cay
action filter_type
action find_reverse
entity prev_answer
relation country
type landform
[{'concept': 'landform'}, 'country', 'Gabon'] [{'concept': 'landform'}, 'country', 'Grenada'] [{'concept': 'landform'}, 'country', 'The Bahamas']
SELECT DISTINCT ?k WHERE { ?k property:country ?c . VALUES ( ?c ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } . ?k rdf:type ontology:landform }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3116419 Q503482 Q5180214
P17
Q1048835
USER
Which political territories do Grenada, Grenadines and Crab Cay belong to ?
(Q3116419,P17,c(Q1048835)) (Q503482,P17,c(Q1048835)) (Q5180214,P17,c(Q1048835))
action union
action filter_type
action find
entity Q3116419
relation P17
type Q1048835
action filter_type
action find
entity Q503482
relation P17
type Q1048835
action filter_type
action find
entity Q5180214
relation P17
type Q1048835
['Q3116419', 'P17', {'concept': 'Q1048835'}] ['Q503482', 'P17', {'concept': 'Q1048835'}] ['Q5180214', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { resource:Q3116419 property:P17 ?s . ?s rdf:type ontology:Q1048835 } UNION { resource:Q503482 property:P17 ?s . ?s rdf:type ontology:Q1048835 } }
Grenada Grenadines Crab Cay
action union
action filter_type
action find
entity Grenada
relation country
type political territorial entity
action filter_type
action find
entity Grenadines
relation country
type political territorial entity
action filter_type
action find
entity Crab Cay
relation country
type political territorial entity
['Grenada', 'country', {'concept': 'political territorial entity'}] ['Grenadines', 'country', {'concept': 'political territorial entity'}] ['Crab Cay', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:Grenada property:country ?s . ?s rdf:type ontology:political_territorial_entity } UNION { resource:Grenadines property:country ?s . ?s rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q769 Q769 Q757
SYSTEM
Saint Vincent and the Grenadines for 3rd, Grenada for 1st, 2nd
Q769 Q757 Q769 Q778
(Q3116419,P17,c(Q1048835)) (Q503482,P17,c(Q1048835)) (Q5180214,P17,c(Q1048835))
action union
action filter_type
action find
entity Q3116419
relation P17
type Q1048835
action filter_type
action find
entity Q503482
relation P17
type Q1048835
action filter_type
action find
entity Q5180214
relation P17
type Q1048835
[ANSWERS]
['Q3116419', 'P17', {'concept': 'Q1048835'}] ['Q503482', 'P17', {'concept': 'Q1048835'}] ['Q5180214', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { resource:Q3116419 property:P17 ?s . ?s rdf:type ontology:Q1048835 } UNION { resource:Q503482 property:P17 ?s . ?s rdf:type ontology:Q1048835 } }
Grenada Saint Vincent and the Grenadines Grenada The Bahamas
Grenada, Grenada and Saint Vincent and the Grenadines Grenada, Grenadines and Crab Cay belong to
Grenada Grenada Saint Vincent and the Grenadines
action union
action filter_type
action find
entity Grenada
relation country
type political territorial entity
action filter_type
action find
entity Grenadines
relation country
type political territorial entity
action filter_type
action find
entity Crab Cay
relation country
type political territorial entity
['Grenada', 'country', {'concept': 'political territorial entity'}] ['Grenadines', 'country', {'concept': 'political territorial entity'}] ['Crab Cay', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:Grenada property:country ?s . ?s rdf:type ontology:political_territorial_entity } UNION { resource:Grenadines property:country ?s . ?s rdf:type ontology:political_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q769
P495
Q838948
USER
Which work of art has that political territory as its place of origin ?
(c(Q838948),P495,Q769)
action filter_type
action find_reverse
entity Q769
relation P495
type Q838948
[{'concept': 'Q838948'}, 'P495', 'Q769']
SELECT DISTINCT ?a WHERE { ?a property:P495 resource:Q769 . ?a rdf:type ontology:Q838948 }
Grenada
action filter_type
action find_reverse
entity Grenada
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Grenada']
SELECT DISTINCT ?a WHERE { ?a property:country_of_origin resource:Grenada . ?a rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q757
SYSTEM
Did you mean Saint Vincent and the Grenadines ?
Q769 Q769 Q757
(c(Q838948),P495,Q769) (c(Q838948),P495,Q769) (c(Q838948),P495,Q757)
[ANSWER]
[{'concept': 'Q838948'}, 'P495', 'Q769'] [{'concept': 'Q838948'}, 'P495', 'Q769'] [{'concept': 'Q838948'}, 'P495', 'Q757']
SELECT DISTINCT ?a WHERE { ?a property:P495 resource:Q769 . ?a rdf:type ontology:Q838948 }
Grenada Grenada Saint Vincent and the Grenadines
Did you mean Saint Vincent and the Grenadines ?
Saint Vincent and the Grenadines
[{'concept': 'work of art'}, 'country of origin', 'Grenada'] [{'concept': 'work of art'}, 'country of origin', 'Grenada'] [{'concept': 'work of art'}, 'country of origin', 'Saint Vincent and the Grenadines']
SELECT DISTINCT ?a WHERE { ?a property:country_of_origin resource:Grenada . ?a rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Grenada. Could you tell me the answer for that?
(c(Q838948),P495,Q769)
Q769
[{'concept': 'Q838948'}, 'P495', 'Q769']
[{'concept': 'work of art'}, 'country of origin', 'Grenada']
[]
Q4926674
SYSTEM
Blinded
Q4926674
(c(Q838948),P495,Q769)
action filter_type
action find_reverse
entity Q769
relation P495
type Q838948
[ANSWER] has that political territory as its place of origin
[{'concept': 'Q838948'}, 'P495', 'Q769']
SELECT DISTINCT ?a WHERE { ?a property:P495 resource:Q769 . ?a rdf:type ontology:Q838948 }
Blinded
Blinded has that political territory as its place of origin
Blinded
action filter_type
action find_reverse
entity Grenada
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Grenada']
SELECT DISTINCT ?a WHERE { ?a property:country_of_origin resource:Grenada . ?a rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q769
P530
Q1048835 Q15617994
USER
How many political territories or administrative territories are known to have diplomatic connections with Grenada ?
(c(Q1048835),P530,Q769) (c(Q15617994),P530,Q769)
action count
action union
action filter_type
action find_reverse
entity Q769
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q769
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', 'Q769'] [{'concept': 'Q15617994'}, 'P530', 'Q769']
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { ?c property:P530 resource:Q769 . ?c rdf:type ontology:Q1048835 } UNION { ?c property:P530 resource:Q769 . ?c rdf:type ontology:Q15617994 } }
Grenada
action count
action union
action filter_type
action find_reverse
entity Grenada
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Grenada'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Grenada']
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { ?c property:diplomatic_relation resource:Grenada . ?c rdf:type ontology:political_territorial_entity } UNION { ?c property:diplomatic_relation resource:Grenada . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q408 Q230
(c(Q1048835),P530,Q769) (c(Q15617994),P530,Q769)
action count
action union
action filter_type
action find_reverse
entity Q769
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q769
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q769'] [{'concept': 'Q15617994'}, 'P530', 'Q769']
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { ?c property:P530 resource:Q769 . ?c rdf:type ontology:Q1048835 } UNION { ?c property:P530 resource:Q769 . ?c rdf:type ontology:Q15617994 } }
Australia Georgia
2
action count
action union
action filter_type
action find_reverse
entity Grenada
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Grenada'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Grenada']
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { ?c property:diplomatic_relation resource:Grenada . ?c rdf:type ontology:political_territorial_entity } UNION { ?c property:diplomatic_relation resource:Grenada . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q769
P1376
Q56061
USER
Which administrative territory is the county seat for Grenada ?
(c(Q56061),P1376,Q769)
action filter_type
action find_reverse
entity Q769
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q769']
SELECT DISTINCT ?y WHERE { ?y property:P1376 resource:Q769 . ?y rdf:type ontology:Q56061 }
Grenada
action filter_type
action find_reverse
entity Grenada
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Grenada']
SELECT DISTINCT ?y WHERE { ?y property:capital_of resource:Grenada . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q41547
SYSTEM
St. George's
Q41547
(c(Q56061),P1376,Q769)
action filter_type
action find_reverse
entity Q769
relation P1376
type Q56061
[ANSWER] is the county seat for Grenada
[{'concept': 'Q56061'}, 'P1376', 'Q769']
SELECT DISTINCT ?y WHERE { ?y property:P1376 resource:Q769 . ?y rdf:type ontology:Q56061 }
St. George's
St. George's is the county seat for Grenada
St. George's
action filter_type
action find_reverse
entity Grenada
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Grenada']
SELECT DISTINCT ?y WHERE { ?y property:capital_of resource:Grenada . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q41547
P36
Q1048835
USER
Which political territory consists of that administrative territory as its capital ?
(c(Q1048835),P36,Q41547)
action filter_type
action find_reverse
entity Q41547
relation P36
type Q1048835
[{'concept': 'Q1048835'}, 'P36', 'Q41547']
SELECT DISTINCT ?w WHERE { ?w property:P36 resource:Q41547 . ?w rdf:type ontology:Q1048835 }
St. George's
action filter_type
action find_reverse
entity St. George's
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', "St. George's"]
SELECT DISTINCT ?w WHERE { ?w property:capital resource:St._George's . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q769
SYSTEM
Grenada
Q769
(c(Q1048835),P36,Q41547)
action filter_type
action find_reverse
entity Q41547
relation P36
type Q1048835
G [ANSWER] consists of that administrative territory as its capital
[{'concept': 'Q1048835'}, 'P36', 'Q41547']
SELECT DISTINCT ?w WHERE { ?w property:P36 resource:Q41547 . ?w rdf:type ontology:Q1048835 }
Grenada
G Grenada consists of that administrative territory as its capital
Grenada
action filter_type
action find_reverse
entity St. George's
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', "St. George's"]
SELECT DISTINCT ?w WHERE { ?w property:capital resource:St._George's . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q769
P706
Q107425
USER
Which landscape is that political territory located on ?
(Q769,P706,c(Q107425))
action filter_type
action find
entity Q769
relation P706
type Q107425
['Q769', 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?x WHERE { resource:Q769 property:P706 ?x . ?x rdf:type ontology:Q107425 }
Grenada
action filter_type
action find
entity Grenada
relation located on terrain feature
type landscape
['Grenada', 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?x WHERE { resource:Grenada property:located_on_terrain_feature ?x . ?x rdf:type ontology:landscape }
[]
landscape
Q93259
SYSTEM
Lesser Antilles
Q93259
(Q769,P706,c(Q107425))
action filter_type
action find
entity Q769
relation P706
type Q107425
That political territory is located in [ANSWER]
['Q769', 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?x WHERE { resource:Q769 property:P706 ?x . ?x rdf:type ontology:Q107425 }
Lesser Antilles
That political territory is located in Lesser Antilles
Lesser Antilles
action filter_type
action find
entity Grenada
relation located on terrain feature
type landscape
['Grenada', 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?x WHERE { resource:Grenada property:located_on_terrain_feature ?x . ?x rdf:type ontology:landscape }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P361
Q107425
USER
How many landscapes are a part of that landscape ?
(c(Q107425),P361,Q93259)
action count
action filter_type
action find_reverse
entity Q93259
relation P361
type Q107425
[{'concept': 'Q107425'}, 'P361', 'Q93259']
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z rdf:type ontology:Q107425 . ?z property:P361 resource:Q93259 }
action count
action filter_type
action find_reverse
entity Lesser Antilles
relation part of
type landscape
[{'concept': 'landscape'}, 'part of', 'Lesser Antilles']
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z rdf:type ontology:landscape . ?z property:part_of resource:Lesser_Antilles }
[]
landscape
SYSTEM
3
Q183416 Q17012 Q292647
(c(Q107425),P361,Q93259)
action count
action filter_type
action find_reverse
entity Q93259
relation P361
type Q107425
[ANSWER]
[{'concept': 'Q107425'}, 'P361', 'Q93259']
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z rdf:type ontology:Q107425 . ?z property:P361 resource:Q93259 }
Windward Islands Guadeloupe Petite Terre Islands
3
action count
action filter_type
action find_reverse
entity Lesser Antilles
relation part of
type landscape
[{'concept': 'landscape'}, 'part of', 'Lesser Antilles']
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z rdf:type ontology:landscape . ?z property:part_of resource:Lesser_Antilles }
[]