Simple Question (Direct)
Simple Question
Q5539886
P106
Q12737077
USER
What is the job of George Green Foster ?
(Q5539886,P106,c(Q12737077))
action filter_type
action find
entity Q5539886
relation P106
type Q12737077
['Q5539886', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5539886 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
George Green Foster
action filter_type
action find
entity George Green Foster
relation occupation
type occupation
['George Green Foster', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:George_Green_Foster property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q5539886,P106,c(Q12737077))
action filter_type
action find
entity Q5539886
relation P106
type Q12737077
The job of George Green Foster is a [ANSWER]
['Q5539886', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5539886 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
politician
The job of George Green Foster is a politician
politician
action filter_type
action find
entity George Green Foster
relation occupation
type occupation
['George Green Foster', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:George_Green_Foster property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5539886
P39
Q12737077
USER
Which occupation was a position occupied by that person ?
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q5539886
relation P39
type Q12737077
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q5539886 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
George Green Foster
action filter_type
action find
entity George Green Foster
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:George_Green_Foster property:position_held ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q18524027
SYSTEM
Member of the Senate of Canada
Q18524027
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q5539886
relation P39
type Q12737077
Canada [ANSWER] was a position occupied by that person
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q5539886 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Member of the Senate of Canada
Canada Member of the Senate of Canada was a position occupied by that person
Member of the Senate of Canada
action filter_type
action find
entity George Green Foster
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:George_Green_Foster property:position_held ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5539886
P102
Q7210356
USER
Which party does that person belong to ?
(Q18524027,P102,c(Q7210356))
action filter_type
action find
entity Q5539886
relation P102
type Q7210356
['Q18524027', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q5539886 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
George Green Foster
action filter_type
action find
entity George Green Foster
relation member of political party
type political organization
['Member of the Senate of Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:George_Green_Foster property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
political organization
Q909827
SYSTEM
Conservative Party of Canada
Q909827
(Q18524027,P102,c(Q7210356))
action filter_type
action find
entity Q5539886
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q18524027', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q5539886 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Conservative Party of Canada
That person belongs to Conservative Party of Canada
Conservative Party of Canada
action filter_type
action find
entity George Green Foster
relation member of political party
type political organization
['Member of the Senate of Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:George_Green_Foster property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5539886
P21
Q290
USER
Which sex does that person possess ?
(Q909827,P21,c(Q290))
action filter_type
action find
entity Q5539886
relation P21
type Q290
['Q909827', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q5539886 property:P21 ?y . ?y rdf:type ontology:Q290 }
George Green Foster
action filter_type
action find
entity George Green Foster
relation gender
type sex
['Conservative Party of Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:George_Green_Foster property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q909827,P21,c(Q290))
action filter_type
action find
entity Q5539886
relation P21
type Q290
That person possesses a [ANSWER]
['Q909827', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q5539886 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity George Green Foster
relation gender
type sex
['Conservative Party of Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:George_Green_Foster property:gender ?y . ?y rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5539886
P27
Q1048835
USER
Which political territory does that person belong to ?
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q5539886
relation P27
type Q1048835
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q5539886 property:P27 ?n }
George Green Foster
action filter_type
action find
entity George Green Foster
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:George_Green_Foster property:country_of_citizenship ?n }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q5539886
relation P27
type Q1048835
That person belongs to the [ANSWER]
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q5539886 property:P27 ?n }
Canada
That person belongs to the Canada
Canada
action filter_type
action find
entity George Green Foster
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:George_Green_Foster property:country_of_citizenship ?n }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
How many political territories are lesser number of people an inhabitant of than that political territory ?
(c(Q502895),P27,c(Q1048835))
action count
action less
action find_reverse_tuple_counts
relation P27
type Q1048835
type Q502895
action count
action filter_type
action find_reverse
entity Q16
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { ?a property:P27 resource:Q16 . ?a rdf:type ontology:Q502895 } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:P27 ?s . ?i rdf:type ontology:Q502895 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } }
action count
action less
action find_reverse_tuple_counts
relation country of citizenship
type political territorial entity
type common name
action count
action filter_type
action find_reverse
entity Canada
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { ?a property:country_of_citizenship resource:Canada . ?a rdf:type ontology:common_name } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:country_of_citizenship ?s . ?i rdf:type ontology:common_name . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
political territorial entity common name
SYSTEM
65
Q635755 Q668384 Q1000 Q193714 Q1747689 Q746558 Q838261 Q785 Q193619 Q691 Q769 Q685 Q699964 Q763 Q1232887 Q664 Q766 Q22880 Q170361 Q1054923 Q10557 Q5720 Q505610 Q693551 Q13353 Q494354 Q650489 Q781 Q5705 Q757 Q168159 Q5785 Q35 Q109128 Q3306663 Q190959 Q11266977 Q223793 Q3995 Q130842 Q40 Q18221 Q650682 Q778 Q408 Q9676 Q217829 Q100166 Q9648 Q234 Q4040 Q2991382 Q309460 Q129286 Q168651 Q3908 Q9337 Q23635 Q192184 Q25228 Q31747 Q25305 Q79965 Q157070 Q170604
(c(Q502895),P27,c(Q1048835))
action count
action less
action find_reverse_tuple_counts
relation P27
type Q1048835
type Q502895
action count
action filter_type
action find_reverse
entity Q16
relation P27
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { ?a property:P27 resource:Q16 . ?a rdf:type ontology:Q502895 } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:P27 ?s . ?i rdf:type ontology:Q502895 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } }
Odieta Medellín Gabon Mandatory Palestine Ancient Rome Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Papua New Guinea Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis County of Savoy New Zealand Jamaica Electoral Palatinate Saar British Hong Kong Swabia Valencian Country Flintshire Landgraviate of Hesse-Darmstadt Montserrat Kara-Khanid Khanate Margraviate of Baden Antigua and Barbuda Catalonia Saint Vincent and the Grenadines Anglesey Cayman Islands Denmark Gwynedd Merthyr Tydfil County Borough Transvaal Epirus Kingdom of Etruria Basque Country Greater Lebanon Austria Turks and Caicos Islands Denbighshire The Bahamas Australia Isle of Man Ceredigion Orkney Islands Falkland Islands Flemish Region Aragon County of Provence County of Hainaut British Raj Landgraviate of Hesse-Kassel Galicia Flemish Region Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands Golden Horde County of Flanders New France
65
action count
action less
action find_reverse_tuple_counts
relation country of citizenship
type political territorial entity
type common name
action count
action filter_type
action find_reverse
entity Canada
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { ?a property:country_of_citizenship resource:Canada . ?a rdf:type ontology:common_name } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:country_of_citizenship ?s . ?i rdf:type ontology:common_name . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4937660 Q909827
P17
Q1048835
USER
Which political territories are Conservative Party of Canada or Bogles situated in ?
OR((Q909827,P17,c(Q1048835)), (Q4937660,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q909827
relation P17
action find
entity Q4937660
relation P17
type Q1048835
{'OR': [['Q909827', 'P17', {'concept': 'Q1048835'}], ['Q4937660', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q909827 property:P17 ?v } UNION { resource:Q4937660 property:P17 ?v } } . ?v rdf:type ontology:Q1048835 }
Bogles Conservative Party of Canada
action filter_type
action union
action find
entity Conservative Party of Canada
relation country
action find
entity Bogles
relation country
type political territorial entity
{'OR': [['Conservative Party of Canada', 'country', {'concept': 'political territorial entity'}], ['Bogles', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Conservative_Party_of_Canada property:country ?v } UNION { resource:Bogles property:country ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q769
SYSTEM
Canada, Grenada
Q16 Q769
OR((Q909827,P17,c(Q1048835)), (Q4937660,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q909827
relation P17
action find
entity Q4937660
relation P17
type Q1048835
Conservative Party of Canada or Bogles are situated in [ANSWERS]
{'OR': [['Q909827', 'P17', {'concept': 'Q1048835'}], ['Q4937660', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q909827 property:P17 ?v } UNION { resource:Q4937660 property:P17 ?v } } . ?v rdf:type ontology:Q1048835 }
Canada Grenada
Conservative Party of Canada or Bogles are situated in Canada and Grenada
Canada Grenada
action filter_type
action union
action find
entity Conservative Party of Canada
relation country
action find
entity Bogles
relation country
type political territorial entity
{'OR': [['Conservative Party of Canada', 'country', {'concept': 'political territorial entity'}], ['Bogles', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Conservative_Party_of_Canada property:country ?v } UNION { resource:Bogles property:country ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q16 Q769
P163
Q14660
USER
Which flags are associated with Canada and Grenada ?
(Q16,P163,c(Q14660)) (Q769,P163,c(Q14660))
action union
action filter_type
action find
entity Q16
relation P163
type Q14660
action filter_type
action find
entity Q769
relation P163
type Q14660
['Q16', 'P163', {'concept': 'Q14660'}] ['Q769', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q14660 . resource:Q16 property:P163 ?p } UNION { ?p rdf:type ontology:Q14660 . resource:Q769 property:P163 ?p } }
Canada Grenada
action union
action filter_type
action find
entity Canada
relation flag
type flag
action filter_type
action find
entity Grenada
relation flag
type flag
['Canada', 'flag', {'concept': 'flag'}] ['Grenada', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:flag . resource:Canada property:flag ?p } UNION { ?p rdf:type ontology:flag . resource:Grenada property:flag ?p } }
[]
flag
Q80110 Q103414
SYSTEM
flag of Canada, Flag of Grenada
Q80110 Q103414
(Q16,P163,c(Q14660)) (Q769,P163,c(Q14660))
action union
action filter_type
action find
entity Q16
relation P163
type Q14660
action filter_type
action find
entity Q769
relation P163
type Q14660
[ANSWERS] are associated with Canada and Grenada
['Q16', 'P163', {'concept': 'Q14660'}] ['Q769', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q14660 . resource:Q16 property:P163 ?p } UNION { ?p rdf:type ontology:Q14660 . resource:Q769 property:P163 ?p } }
flag of Canada Flag of Grenada
Flag of Canada and Flag of Grenada are associated with Canada and Grenada
flag of Canada Flag of Grenada
action union
action filter_type
action find
entity Canada
relation flag
type flag
action filter_type
action find
entity Grenada
relation flag
type flag
['Canada', 'flag', {'concept': 'flag'}] ['Grenada', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:flag . resource:Canada property:flag ?p } UNION { ?p rdf:type ontology:flag . resource:Grenada property:flag ?p } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q103414
P1001
Q1048835
USER
Which political territory comes under the jurisdiction of that flag ?
(Q103414,P1001,c(Q1048835))
action filter_type
action find
entity Q103414
relation P1001
type Q1048835
['Q103414', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q103414 property:P1001 ?g . ?g rdf:type ontology:Q1048835 }
Flag of Grenada
action filter_type
action find
entity Flag of Grenada
relation applies to jurisdiction
type political territorial entity
['Flag of Grenada', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Flag_of_Grenada property:applies_to_jurisdiction ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q80110
SYSTEM
Did you mean flag of Canada ?
Q80110 Q103414
(Q80110,P1001,c(Q1048835)) (Q103414,P1001,c(Q1048835))
[ANSWER]
['Q80110', 'P1001', {'concept': 'Q1048835'}] ['Q103414', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q103414 property:P1001 ?g . ?g rdf:type ontology:Q1048835 }
flag of Canada Flag of Grenada
Did you mean flag of Canada ?
flag of Canada
['flag of Canada', 'applies to jurisdiction', {'concept': 'political territorial entity'}] ['Flag of Grenada', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Flag_of_Grenada property:applies_to_jurisdiction ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Flag of Grenada. Could you tell me the answer for that?
(Q103414,P1001,c(Q1048835))
Q103414
['Q103414', 'P1001', {'concept': 'Q1048835'}]
['Flag of Grenada', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
[]
Q769
SYSTEM
Grenada
Q769
(Q103414,P1001,c(Q1048835))
action filter_type
action find
entity Q103414
relation P1001
type Q1048835
[ANSWER] comes under the jurisdiction of that flag
['Q103414', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q103414 property:P1001 ?g . ?g rdf:type ontology:Q1048835 }
Grenada
Grenada comes under the jurisdiction of that flag
Grenada
action filter_type
action find
entity Flag of Grenada
relation applies to jurisdiction
type political territorial entity
['Flag of Grenada', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Flag_of_Grenada property:applies_to_jurisdiction ?g . ?g rdf:type ontology:political_territorial_entity }
[]