Simple Question (Direct)
Simple Question
Q16236405
P21
Q290
USER
What is the sex of Isaac Ntow ?
(Q16236405,P21,c(Q290))
action filter_type
action find
entity Q16236405
relation P21
type Q290
['Q16236405', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q16236405 property:P21 ?z . ?z rdf:type ontology:Q290 }
Isaac Ntow
action filter_type
action find
entity Isaac Ntow
relation gender
type sex
['Isaac Ntow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Isaac_Ntow property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16236405,P21,c(Q290))
action filter_type
action find
entity Q16236405
relation P21
type Q290
The sex of Isaac Ntow is a [ANSWER]
['Q16236405', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q16236405 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
The sex of Isaac Ntow is a male
male
action filter_type
action find
entity Isaac Ntow
relation gender
type sex
['Isaac Ntow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Isaac_Ntow property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16236405
P19
Q15617994
USER
Which administrative territory was that person born at ?
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q16236405
relation P19
type Q15617994
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q16236405 property:P19 ?y . ?y rdf:type ontology:Q15617994 }
Isaac Ntow
action filter_type
action find
entity Isaac Ntow
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Isaac_Ntow property:place_of_birth ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q117
SYSTEM
Ghana
Q117
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q16236405
relation P19
type Q15617994
That person was born in [ANSWER]
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q16236405 property:P19 ?y . ?y rdf:type ontology:Q15617994 }
Ghana
That person was born in Ghana
Ghana
action filter_type
action find
entity Isaac Ntow
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Isaac_Ntow property:place_of_birth ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q17335294 Q4164871
USER
How many administrative territories belong to jurisdiction of around 2 coats of arms or positions ?
(c(Q17335294)|c(Q4164871),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
value 2
[[{'concept': 'Q17335294'}, {'concept': 'Q4164871'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { FILTER ( ?w = 2 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?d WHERE { { ?i rdf:type ontology:Q17335294 . ?d rdf:type ontology:Q15617994 . ?i property:P1001 ?d } UNION { ?d rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q4164871 . ?i property:P1001 ?d } } GROUP BY ?d } }
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
value 2
[[{'concept': 'flag or coat of arms'}, {'concept': 'position'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { FILTER ( ?w = 2 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?d WHERE { { ?i rdf:type ontology:flag_or_coat_of_arms . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:applies_to_jurisdiction ?d } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:position . ?i property:applies_to_jurisdiction ?d } } GROUP BY ?d } }
[]
designation for an administrative territorial entity flag or coat of arms position
SYSTEM
48
Q701 Q705 Q707 Q142 Q148 Q189 Q37 Q837 Q213 Q258 Q45 Q159 Q41 Q4628 Q889 Q822 Q33 Q30 Q769680 Q1093 Q20 Q27 Q2667658 Q184 Q1101 Q1904 Q223 Q229 Q191 Q694 Q752 Q212 Q211 Q214 Q154547 Q833 Q1438 Q836 Q775 Q776 Q770 Q773 Q772 Q129003 Q176 Q33788 Q1267638 Q1231
(c(Q17335294)|c(Q4164871),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
value 2
[ANSWER]
[[{'concept': 'Q17335294'}, {'concept': 'Q4164871'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { FILTER ( ?w = 2 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?d WHERE { { ?i rdf:type ontology:Q17335294 . ?d rdf:type ontology:Q15617994 . ?i property:P1001 ?d } UNION { ?d rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q4164871 . ?i property:P1001 ?d } } GROUP BY ?d } }
North Holland Zeeland Flevoland France People's Republic of China Iceland Lithuania Nepal Czech Republic South Africa Portugal Russia Greece Faroe Islands Afghanistan Lebanon Finland United States of America Bornholm Limburg Norway Ireland Shushary, Saint Petersburg Belarus North Brabant Ontario Greenland Cyprus Estonia South Holland Groningen Ukraine Latvia Slovakia duchy Malaysia Campania Myanmar Gelderland Utrecht Friesland Overijssel Drenthe French Southern and Antarctic Lands Quebec New Caledonia Beloostrov Kosovo Region
48
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
value 2
[[{'concept': 'flag or coat of arms'}, {'concept': 'position'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { FILTER ( ?w = 2 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?d WHERE { { ?i rdf:type ontology:flag_or_coat_of_arms . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:applies_to_jurisdiction ?d } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:position . ?i property:applies_to_jurisdiction ?d } } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26694456 Q117
P530 P1001
Q1048835
USER
Which political territories have diplomatic relations with Ghana or come under the supervision of mayor of Cihuri ?
OR((Q117,P530,c(Q1048835)), (Q26694456,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q117
relation P530
action find
entity Q26694456
relation P1001
type Q1048835
{'OR': [['Q117', 'P530', {'concept': 'Q1048835'}], ['Q26694456', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { { resource:Q117 property:P530 ?m } UNION { resource:Q26694456 property:P1001 ?m } } }
mayor of Cihuri Ghana
action filter_type
action union
action find
entity Ghana
relation diplomatic relation
action find
entity mayor of Cihuri
relation applies to jurisdiction
type political territorial entity
{'OR': [['Ghana', 'diplomatic relation', {'concept': 'political territorial entity'}], ['mayor of Cihuri', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { { resource:Ghana property:diplomatic_relation ?m } UNION { resource:mayor_of_Cihuri property:applies_to_jurisdiction ?m } } }
[]
political territorial entity
Q408 Q1647698 Q183
SYSTEM
Australia, Cihuri, Germany
Q408 Q1647698 Q183
OR((Q117,P530,c(Q1048835)), (Q26694456,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q117
relation P530
action find
entity Q26694456
relation P1001
type Q1048835
[ANSWERS] have diplomatic relations with Ghana or come under the supervision of mayor of Cihuri
{'OR': [['Q117', 'P530', {'concept': 'Q1048835'}], ['Q26694456', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . { { resource:Q117 property:P530 ?m } UNION { resource:Q26694456 property:P1001 ?m } } }
Australia Cihuri Germany
Australia, Cihuri and Germany have diplomatic relations with Ghana or come under the supervision of mayor of Cihuri
Australia Cihuri Germany
action filter_type
action union
action find
entity Ghana
relation diplomatic relation
action find
entity mayor of Cihuri
relation applies to jurisdiction
type political territorial entity
{'OR': [['Ghana', 'diplomatic relation', {'concept': 'political territorial entity'}], ['mayor of Cihuri', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . { { resource:Ghana property:diplomatic_relation ?m } UNION { resource:mayor_of_Cihuri property:applies_to_jurisdiction ?m } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q29 Q12271
P101
Q43229
USER
How many organizations works in the domain of Spain or architecture ?
(c(Q43229),P101,Q29) (c(Q43229),P101,Q12271)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P101
type Q43229
action filter_type
action find_reverse
entity Q12271
relation P101
type Q43229
[{'concept': 'Q43229'}, 'P101', 'Q29'] [{'concept': 'Q43229'}, 'P101', 'Q12271']
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { ?v property:P101 resource:Q29 . ?v rdf:type ontology:Q43229 } UNION { ?v rdf:type ontology:Q43229 . ?v property:P101 resource:Q12271 } }
Spain architecture
action count
action union
action filter_type
action find_reverse
entity Spain
relation field of work
type organization
action filter_type
action find_reverse
entity architecture
relation field of work
type organization
[{'concept': 'organization'}, 'field of work', 'Spain'] [{'concept': 'organization'}, 'field of work', 'architecture']
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { ?v property:field_of_work resource:Spain . ?v rdf:type ontology:organization } UNION { ?v rdf:type ontology:organization . ?v property:field_of_work resource:architecture } }
[]
organization
SYSTEM
2
Q19561271 Q4387609
(c(Q43229),P101,Q29) (c(Q43229),P101,Q12271)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P101
type Q43229
action filter_type
action find_reverse
entity Q12271
relation P101
type Q43229
[ANSWER]
[{'concept': 'Q43229'}, 'P101', 'Q29'] [{'concept': 'Q43229'}, 'P101', 'Q12271']
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { ?v property:P101 resource:Q29 . ?v rdf:type ontology:Q43229 } UNION { ?v rdf:type ontology:Q43229 . ?v property:P101 resource:Q12271 } }
Loyn & Co architectural firm
2
action count
action union
action filter_type
action find_reverse
entity Spain
relation field of work
type organization
action filter_type
action find_reverse
entity architecture
relation field of work
type organization
[{'concept': 'organization'}, 'field of work', 'Spain'] [{'concept': 'organization'}, 'field of work', 'architecture']
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { ?v property:field_of_work resource:Spain . ?v rdf:type ontology:organization } UNION { ?v rdf:type ontology:organization . ?v property:field_of_work resource:architecture } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q1048835 Q4830453 Q62447
USER
Which political territories are min number of business enterprises and aerodromes a part of ?
(c(Q4830453)|c(Q62447),P17,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q4830453
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q62447
[[{'concept': 'Q4830453'}, {'concept': 'Q62447'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?j WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:Q4830453 ) ( ontology:Q62447 ) } } GROUP BY ?j } . FILTER ( ?q = ?g ) . { SELECT DISTINCT ( MIN ( ?n ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?p WHERE { VALUES ( ?x ) { ( ontology:Q4830453 ) ( ontology:Q62447 ) } . ?h rdf:type ?x } GROUP BY ?p } } }
action argmin
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type business enterprise
action find_reverse_tuple_counts
relation country
type political territorial entity
type aerodrome
[[{'concept': 'business enterprise'}, {'concept': 'aerodrome'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?j WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:business_enterprise ) ( ontology:aerodrome ) } } GROUP BY ?j } . FILTER ( ?q = ?g ) . { SELECT DISTINCT ( MIN ( ?n ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?p WHERE { VALUES ( ?x ) { ( ontology:business_enterprise ) ( ontology:aerodrome ) } . ?h rdf:type ?x } GROUP BY ?p } } }
[]
political territorial entity business enterprise aerodrome
Q5705 Q231 Q21590062
SYSTEM
Catalonia, Walloon Region, Antarctic Treaty area
Q193714 Q195972 Q21590062 Q746558 Q838261 Q193619 Q699964 Q13767 Q34617 Q22880 Q641138 Q693551 Q848383 Q5705 Q13726 Q953068 Q38610 Q3405693 Q1054923 Q79965 Q223793 Q319376 Q13869 Q407199 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q231 Q234 Q2991382 Q168651 Q399702 Q35086 Q23635 Q208279 Q1615455 Q129286
(c(Q4830453)|c(Q62447),P17,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q4830453
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q62447
[ANSWERS] are min number of business enterprises and aerodromes a part of
[[{'concept': 'Q4830453'}, {'concept': 'Q62447'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?j WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:Q4830453 ) ( ontology:Q62447 ) } } GROUP BY ?j } . FILTER ( ?q = ?g ) . { SELECT DISTINCT ( MIN ( ?n ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?p WHERE { VALUES ( ?x ) { ( ontology:Q4830453 ) ( ontology:Q62447 ) } . ?h rdf:type ?x } GROUP BY ?p } } }
Mandatory Palestine Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Union of South Africa Archduchy of Austria Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Duchy of Cleves Landgraviate of Hesse-Darmstadt Duchy of Rome Catalonia Albay South-West Africa Dominion of Newfoundland Sark British Hong Kong Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Walloon Region Flemish Region County of Provence Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Duchy of Mirandola British Raj
Catalonia, Walloon Region and Antarctic Treaty area are min number of business enterprises and aerodromes a part of
Catalonia Walloon Region Antarctic Treaty area
action argmin
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type business enterprise
action find_reverse_tuple_counts
relation country
type political territorial entity
type aerodrome
[[{'concept': 'business enterprise'}, {'concept': 'aerodrome'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) ?j WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:business_enterprise ) ( ontology:aerodrome ) } } GROUP BY ?j } . FILTER ( ?q = ?g ) . { SELECT DISTINCT ( MIN ( ?n ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?p WHERE { VALUES ( ?x ) { ( ontology:business_enterprise ) ( ontology:aerodrome ) } . ?h rdf:type ?x } GROUP BY ?p } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions are bordered by that political territory ?
(Q231,P47,c(Q20667921))
['Q231', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q231 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
['Walloon Region', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Walloon_Region property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q5705
SYSTEM
Did you mean Catalonia ?
(Q5705,P47,c(Q20667921)) (Q231,P47,c(Q20667921)) (Q21590062,P47,c(Q20667921))
[ANSWER]
['Q5705', 'P47', {'concept': 'Q20667921'}] ['Q231', 'P47', {'concept': 'Q20667921'}] ['Q21590062', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q231 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Did you mean Catalonia ?
Catalonia
['Catalonia', 'shares border with', {'concept': 'type of french administrative division'}] ['Walloon Region', 'shares border with', {'concept': 'type of french administrative division'}] ['Antarctic Treaty area', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Walloon_Region property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Walloon Region. Could you tell me the answer for that?
(Q231,P47,c(Q20667921))
Q231
['Q231', 'P47', {'concept': 'Q20667921'}]
['Walloon Region', 'shares border with', {'concept': 'type of french administrative division'}]
[]
SYSTEM
2
Q18677983 Q18677767
(Q231,P47,c(Q20667921))
[ANSWER]
['Q231', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q231 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Grand Est Hauts-de-France
2
['Walloon Region', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Walloon_Region property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q231
P276
Q15275719
USER
Which recurring event is located at Walloon Region ?
(c(Q15275719),P276,Q231)
action filter_type
action find_reverse
entity Q231
relation P276
type Q15275719
[{'concept': 'Q15275719'}, 'P276', 'Q231']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q231 . ?h rdf:type ontology:Q15275719 }
Walloon Region
action filter_type
action find_reverse
entity Walloon Region
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Walloon Region']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Walloon_Region . ?h rdf:type ontology:recurring_event }
[]
recurring event
Q499192
SYSTEM
La Flèche Wallonne
Q499192
(c(Q15275719),P276,Q231)
action filter_type
action find_reverse
entity Q231
relation P276
type Q15275719
[ANSWER] is located at Walloon Region
[{'concept': 'Q15275719'}, 'P276', 'Q231']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q231 . ?h rdf:type ontology:Q15275719 }
La Flèche Wallonne
La Flèche Wallonne is located at Walloon Region
La Flèche Wallonne
action filter_type
action find_reverse
entity Walloon Region
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Walloon Region']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Walloon_Region . ?h rdf:type ontology:recurring_event }
[]