Simple Question (Direct)
Simple Question
Q4755770
P106
Q12737077
USER
What does Andrei Dapkiunas do for a living ?
(Q4755770,P106,c(Q12737077))
action filter_type
action find
entity Q4755770
relation P106
type Q12737077
['Q4755770', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q4755770 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Andrei Dapkiunas
action filter_type
action find
entity Andrei Dapkiunas
relation occupation
type occupation
['Andrei Dapkiunas', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Andrei_Dapkiunas property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q193391
SYSTEM
diplomat
Q193391
(Q4755770,P106,c(Q12737077))
action filter_type
action find
entity Q4755770
relation P106
type Q12737077
Andrei Dapkiunas does a [ANSWER] for a living
['Q4755770', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q4755770 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
diplomat
Andrei Dapkiunas does a diplomat for a living
diplomat
action filter_type
action find
entity Andrei Dapkiunas
relation occupation
type occupation
['Andrei Dapkiunas', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Andrei_Dapkiunas property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4755770
P21
Q290
USER
What is the sex of Andrei Dapkiunas ?
(Q4755770,P21,c(Q290))
action filter_type
action find
entity Q4755770
relation P21
type Q290
['Q4755770', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q4755770 property:P21 ?u }
Andrei Dapkiunas
action filter_type
action find
entity Andrei Dapkiunas
relation gender
type sex
['Andrei Dapkiunas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Andrei_Dapkiunas property:gender ?u }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4755770,P21,c(Q290))
action filter_type
action find
entity Q4755770
relation P21
type Q290
The sex of Andrei Dapkiunas is the [ANSWER]
['Q4755770', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q4755770 property:P21 ?u }
male
The sex of Andrei Dapkiunas is the male
male
action filter_type
action find
entity Andrei Dapkiunas
relation gender
type sex
['Andrei Dapkiunas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Andrei_Dapkiunas property:gender ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4755770
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q4755770
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q4755770 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Andrei Dapkiunas
action filter_type
action find
entity Andrei Dapkiunas
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Andrei_Dapkiunas property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184
SYSTEM
Belarus
Q184
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q4755770
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q4755770 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Belarus
Belarus is the country of citizenship of that person
Belarus
action filter_type
action find
entity Andrei Dapkiunas
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Andrei_Dapkiunas property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P530
Q1048835 Q56061
USER
How many political territories and administrative territories have diplomatic relations with that administrative territory ?
(Q184,P530,c(Q1048835)) (Q184,P530,c(Q56061)) (Q184,P530,c(Q1048835)) (Q184,P530,c(Q56061))
action count
action union
action filter_type
action find
entity Q184
relation P530
type Q1048835
action filter_type
action find
entity Q184
relation P530
type Q56061
['Q184', 'P530', {'concept': 'Q1048835'}] ['Q184', 'P530', {'concept': 'Q56061'}] ['Q184', 'P530', {'concept': 'Q1048835'}] ['Q184', 'P530', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { VALUES ( ?f ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } . ?j rdf:type ?f }
action count
action union
action filter_type
action find
entity Belarus
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Belarus
relation diplomatic relation
type administrative territorial entity
['Belarus', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { VALUES ( ?f ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } . ?j rdf:type ?f }
[]
political territorial entity administrative territorial entity
SYSTEM
2 political territories and 1 administrative territories
Q458 Q183 Q35
(Q184,P530,c(Q1048835)) (Q184,P530,c(Q56061)) (Q184,P530,c(Q1048835)) (Q184,P530,c(Q56061))
action count
action union
action filter_type
action find
entity Q184
relation P530
type Q1048835
action filter_type
action find
entity Q184
relation P530
type Q56061
[ANSWER]
['Q184', 'P530', {'concept': 'Q1048835'}] ['Q184', 'P530', {'concept': 'Q56061'}] ['Q184', 'P530', {'concept': 'Q1048835'}] ['Q184', 'P530', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { VALUES ( ?f ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } . ?j rdf:type ?f }
European Union Germany Denmark
2 political territories and 1 administrative territories
action count
action union
action filter_type
action find
entity Belarus
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Belarus
relation diplomatic relation
type administrative territorial entity
['Belarus', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Belarus', 'diplomatic relation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { VALUES ( ?f ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } . ?j rdf:type ?f }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3169641 Q184
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Belarus and are Jean-Pierre Piat a civilian of ?
AND((Q184,P530,c(Q15617994)), (Q3169641,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q184
relation P530
action find
entity Q3169641
relation P27
type Q15617994
{'AND': [['Q184', 'P530', {'concept': 'Q15617994'}], ['Q3169641', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { resource:Q184 property:P530 ?g . resource:Q3169641 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Jean-Pierre Piat Belarus
action filter_type
action intersection
action find
entity Belarus
relation diplomatic relation
action find
entity Jean-Pierre Piat
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Jean-Pierre Piat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { resource:Belarus property:diplomatic_relation ?g . resource:Jean-Pierre_Piat property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q184,P530,c(Q15617994)), (Q3169641,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q184
relation P530
action find
entity Q3169641
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Belarus and are Jean-Pierre Piat a civilian of
{'AND': [['Q184', 'P530', {'concept': 'Q15617994'}], ['Q3169641', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { resource:Q184 property:P530 ?g . resource:Q3169641 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
France
France have diplomatic relationships with Belarus and are Jean-Pierre Piat a civilian of
France
action filter_type
action intersection
action find
entity Belarus
relation diplomatic relation
action find
entity Jean-Pierre Piat
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Jean-Pierre Piat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { resource:Belarus property:diplomatic_relation ?g . resource:Jean-Pierre_Piat property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q7725634
USER
How many administrative territories are the countries of origin of approximately the same number of television programs and literary works as that administrative territory ?
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q15416
type Q7725634
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?r WHERE { ?h rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15416 ) ( ontology:Q7725634 ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { ?m property:P495 resource:Q142 . { { ?m rdf:type ontology:Q15416 } UNION { ?m rdf:type ontology:Q7725634 } } } } . FILTER ( ?l = ?u ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type television program
type literary work
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?r WHERE { ?h rdf:type ?e . VALUES ( ?e ) { ( ontology:television_program ) ( ontology:literary_work ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { ?m property:country_of_origin resource:France . { { ?m rdf:type ontology:television_program } UNION { ?m rdf:type ontology:literary_work } } } } . FILTER ( ?l = ?u ) }
[]
designation for an administrative territorial entity television program literary work
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q15416
type Q7725634
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?r WHERE { ?h rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15416 ) ( ontology:Q7725634 ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { ?m property:P495 resource:Q142 . { { ?m rdf:type ontology:Q15416 } UNION { ?m rdf:type ontology:Q7725634 } } } } . FILTER ( ?l = ?u ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
167
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type television program
type literary work
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?r WHERE { ?h rdf:type ?e . VALUES ( ?e ) { ( ontology:television_program ) ( ontology:literary_work ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { ?m property:country_of_origin resource:France . { { ?m rdf:type ontology:television_program } UNION { ?m rdf:type ontology:literary_work } } } } . FILTER ( ?l = ?u ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q1267889 Q15617994
USER
Which administrative territories are situated in the neighbourhood of approximately 2 bodies of water or waterways ?
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action approx
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 2
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?z WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?z WHERE { VALUES ( ?y ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?g rdf:type ?y } GROUP BY ?z } }
action approx
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?z WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?z WHERE { VALUES ( ?y ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?g rdf:type ?y } GROUP BY ?z } }
[]
body of water waterway designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action approx
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 2
[ANSWER] is situated in the neighbourhood of approximately 2 bodies of water or waterways
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?z WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?z WHERE { VALUES ( ?y ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?g rdf:type ?y } GROUP BY ?z } }
Sweden
Sweden is situated in the neighbourhood of approximately 2 bodies of water or waterways
Sweden
action approx
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?z WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?z WHERE { VALUES ( ?y ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?g rdf:type ?y } GROUP BY ?z } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184
P47
Q15617994
USER
Which administrative territories are next to the border of Belarus ?
(c(Q15617994),P47,Q184)
action filter_type
action find
entity Q184
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q184']
SELECT DISTINCT ?i WHERE { resource:Q184 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
Belarus
action filter_type
action find
entity Belarus
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Belarus']
SELECT DISTINCT ?i WHERE { resource:Belarus property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q36 Q212
SYSTEM
Russia, Poland, Ukraine
Q212 Q159 Q211 Q37 Q36
(c(Q15617994),P47,Q184)
action filter_type
action find
entity Q184
relation P47
type Q15617994
[ANSWERS] are next to the border of Belarus
[{'concept': 'Q15617994'}, 'P47', 'Q184']
SELECT DISTINCT ?i WHERE { resource:Q184 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
Ukraine Russia Latvia Lithuania Poland
Russia, Poland and Ukraine are next to the border of Belarus
Russia Poland Ukraine
action filter_type
action find
entity Belarus
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Belarus']
SELECT DISTINCT ?i WHERE { resource:Belarus property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]