Simple Question (Direct)
Simple Question
Q5718758
P106
Q12737077
USER
What does Henry Bruen do for a living ?
(Q5718758,P106,c(Q12737077))
action filter_type
action find
entity Q5718758
relation P106
type Q12737077
['Q5718758', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5718758 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Henry Bruen
action filter_type
action find
entity Henry Bruen
relation occupation
type occupation
['Henry Bruen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Henry_Bruen property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q5718758,P106,c(Q12737077))
action filter_type
action find
entity Q5718758
relation P106
type Q12737077
Henry Bruen does a [ANSWER] for a living
['Q5718758', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5718758 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
politician
Henry Bruen does a politician for a living
politician
action filter_type
action find
entity Henry Bruen
relation occupation
type occupation
['Henry Bruen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Henry_Bruen property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P39
Q502895
USER
Who held the position of that occupation ?
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P39 resource:Q82955 }
politician
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:position_held resource:politician }
[]
common name
Q26215129
SYSTEM
Morteza Azari
Q26215129
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[ANSWER] held the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P39 resource:Q82955 }
Morteza Azari
Morteza Azari held the position of that occupation
Morteza Azari
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:position_held resource:politician }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26215129
P140
Q874405
USER
Which social group does that person correspond to ?
(Q26215129,P140,c(Q874405))
action filter_type
action find
entity Q26215129
relation P140
type Q874405
['Q26215129', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q874405 . resource:Q26215129 property:P140 ?p }
Morteza Azari
action filter_type
action find
entity Morteza Azari
relation religion
type social group
['Morteza Azari', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:social_group . resource:Morteza_Azari property:religion ?p }
[]
social group
Q432
SYSTEM
Islam
Q432
(Q26215129,P140,c(Q874405))
action filter_type
action find
entity Q26215129
relation P140
type Q874405
That person corresponds à [ANSWER]
['Q26215129', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q874405 . resource:Q26215129 property:P140 ?p }
Islam
That person corresponds à Islam
Islam
action filter_type
action find
entity Morteza Azari
relation religion
type social group
['Morteza Azari', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:social_group . resource:Morteza_Azari property:religion ?p }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q52966 Q26215129
P47 P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Morteza Azari or share the border with Casola Valsenio ?
OR((Q26215129,P27,c(Q15617994)), (Q52966,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q26215129
relation P27
action find
entity Q52966
relation P47
type Q15617994
{'OR': [['Q26215129', 'P27', {'concept': 'Q15617994'}], ['Q52966', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q52966 property:P47 ?m } UNION { resource:Q26215129 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Casola Valsenio Morteza Azari
action filter_type
action union
action find
entity Morteza Azari
relation country of citizenship
action find
entity Casola Valsenio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Morteza Azari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Casola Valsenio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Casola_Valsenio property:shares_border_with ?m } UNION { resource:Morteza_Azari property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q52962 Q82785 Q52987 Q794 Q94588 Q94717 Q94861
SYSTEM
Brisighella, Palazzuolo sul Senio, Riolo Terme, Iran, Borgo Tossignano, Castel del Rio, Fontanelice
Q52962 Q82785 Q52987 Q794 Q94588 Q94717 Q94861
OR((Q26215129,P27,c(Q15617994)), (Q52966,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q26215129
relation P27
action find
entity Q52966
relation P47
type Q15617994
[ANSWERS] are the countries of citizenship of Morteza Azari or share the border with Casola Valsenio
{'OR': [['Q26215129', 'P27', {'concept': 'Q15617994'}], ['Q52966', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q52966 property:P47 ?m } UNION { resource:Q26215129 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Brisighella Palazzuolo sul Senio Riolo Terme Iran Borgo Tossignano Castel del Rio Fontanelice
Brisighella, Palazzuolo sul Senio, Riolo Terme, Iran, Borgo Tossignano, Castel del Rio and Fontanelice are the countries of citizenship of Morteza Azari or share the border with Casola Valsenio
Brisighella Palazzuolo sul Senio Riolo Terme Iran Borgo Tossignano Castel del Rio Fontanelice
action filter_type
action union
action find
entity Morteza Azari
relation country of citizenship
action find
entity Casola Valsenio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Morteza Azari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Casola Valsenio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Casola_Valsenio property:shares_border_with ?m } UNION { resource:Morteza_Azari property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with atleast 20 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 20
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?z >= 20 ) . { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?z ) WHERE { ?w property:P530 ?l . ?w rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?w } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 20
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?z >= 20 ) . { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?z ) WHERE { ?w property:diplomatic_relation ?l . ?w rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 20
[ANSWERS] hold diplomatic relationship with atleast 20 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?z >= 20 ) . { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?z ) WHERE { ?w property:P530 ?l . ?w rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?w } }
Germany Australia Canada
Germany, Australia and Canada hold diplomatic relationship with atleast 20 administrative territories
Germany Australia Canada
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 20
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?z >= 20 ) . { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?z ) WHERE { ?w property:diplomatic_relation ?l . ?w rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q79
P530
Q15617994
USER
Do Egypt have ambassadorial relations with those political territories ?
(Q79,P530,Q183) (Q79,P530,Q408) (Q79,P530,Q16)
action is_in
entity prev_answer
action find
entity Q79
relation P530
['Q79', 'P530', 'Q183'] ['Q79', 'P530', 'Q408'] ['Q79', 'P530', 'Q16']
ASK WHERE { resource:Q79 property:P530 ?f . VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q408 ) ( resource:Q16 ) } }
Egypt
action is_in
entity prev_answer
action find
entity Egypt
relation diplomatic relation
['Egypt', 'diplomatic relation', 'Germany'] ['Egypt', 'diplomatic relation', 'Australia'] ['Egypt', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Egypt property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Germany ) ( resource:Australia ) ( resource:Canada ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q79,P530,Q183) (Q79,P530,Q408) (Q79,P530,Q16)
action is_in
entity prev_answer
action find
entity Q79
relation P530
[ANSWER]
['Q79', 'P530', 'Q183'] ['Q79', 'P530', 'Q408'] ['Q79', 'P530', 'Q16']
ASK WHERE { resource:Q79 property:P530 ?f . VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q408 ) ( resource:Q16 ) } }
Yes
action is_in
entity prev_answer
action find
entity Egypt
relation diplomatic relation
['Egypt', 'diplomatic relation', 'Germany'] ['Egypt', 'diplomatic relation', 'Australia'] ['Egypt', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Egypt property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Germany ) ( resource:Australia ) ( resource:Canada ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3824038 Q94717
P47 P27
Q15617994
USER
Which administrative territories share the border with Castel del Rio or are the native countriesof Marcial Ayaipoma ?
OR((Q94717,P47,c(Q15617994)), (Q3824038,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q94717
relation P47
action find
entity Q3824038
relation P27
type Q15617994
{'OR': [['Q94717', 'P47', {'concept': 'Q15617994'}], ['Q3824038', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q94717 property:P47 ?f } UNION { resource:Q3824038 property:P27 ?f } } . ?f rdf:type ontology:Q15617994 }
Marcial Ayaipoma Castel del Rio
action filter_type
action union
action find
entity Castel del Rio
relation shares border with
action find
entity Marcial Ayaipoma
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Castel del Rio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Marcial Ayaipoma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Castel_del_Rio property:shares_border_with ?f } UNION { resource:Marcial_Ayaipoma property:country_of_citizenship ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q82785 Q52966 Q419 Q94644 Q94968 Q94861
SYSTEM
Palazzuolo sul Senio, Casola Valsenio, Peru, Casalfiumanese, Monterenzio, Fontanelice
Q82785 Q52966 Q419 Q94644 Q94968 Q94861
OR((Q94717,P47,c(Q15617994)), (Q3824038,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q94717
relation P47
action find
entity Q3824038
relation P27
type Q15617994
[ANSWERS] share the border with Castel del Rio or are the native countriesof Marcial Ayaipoma
{'OR': [['Q94717', 'P47', {'concept': 'Q15617994'}], ['Q3824038', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q94717 property:P47 ?f } UNION { resource:Q3824038 property:P27 ?f } } . ?f rdf:type ontology:Q15617994 }
Palazzuolo sul Senio Casola Valsenio Peru Casalfiumanese Monterenzio Fontanelice
Palazzuolo sul Senio, Casola Valsenio, Peru, Casalfiumanese, Monterenzio and Fontanelice share the border with Castel del Rio or are the native countriesof Marcial Ayaipoma
Palazzuolo sul Senio Casola Valsenio Peru Casalfiumanese Monterenzio Fontanelice
action filter_type
action union
action find
entity Castel del Rio
relation shares border with
action find
entity Marcial Ayaipoma
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Castel del Rio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Marcial Ayaipoma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Castel_del_Rio property:shares_border_with ?f } UNION { resource:Marcial_Ayaipoma property:country_of_citizenship ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories did around the same number of releases originate as that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * 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 * 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|More/Less|Single entity type|Clarification
Q419
SYSTEM
Did you mean Peru ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Peru ?
Peru
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 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(Q2031291),P495,c(Q15617994))
[ANSWERS] around the same number of releases originated as that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom 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
Italy, Brazil and Georgia around the same number of releases originated as that administrative territory
Italy Brazil Georgia
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]