Simple Question (Direct)
Simple Question
Q16040122
P734
Q82799
USER
Who has the surname Harald Demuth ?
(Q16040122,P734,c(Q82799))
action filter_type
action find
entity Q16040122
relation P734
type Q82799
['Q16040122', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q16040122 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Harald Demuth
action filter_type
action find
entity Harald Demuth
relation family name
type name
['Harald Demuth', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Harald_Demuth property:family_name ?r . ?r rdf:type ontology:name }
[]
name
Q20354612
SYSTEM
Demuth
Q20354612
(Q16040122,P734,c(Q82799))
action filter_type
action find
entity Q16040122
relation P734
type Q82799
[ANSWER] has the surname Harald [ANSWER]
['Q16040122', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q16040122 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Demuth
Demuth has the surname Harald Demuth
Demuth
action filter_type
action find
entity Harald Demuth
relation family name
type name
['Harald Demuth', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Harald_Demuth property:family_name ?r . ?r rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16040122
P27
Q1048835
USER
Which political territory does that person belong to ?
(Q20354612,P27,c(Q1048835))
action filter_type
action find
entity Q16040122
relation P27
type Q1048835
['Q20354612', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q16040122 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Harald Demuth
action filter_type
action find
entity Harald Demuth
relation country of citizenship
type political territorial entity
['Demuth', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Harald_Demuth property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q20354612,P27,c(Q1048835))
action filter_type
action find
entity Q16040122
relation P27
type Q1048835
That person belongs to the [ANSWER]
['Q20354612', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q16040122 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Germany
That person belongs to the Germany
Germany
action filter_type
action find
entity Harald Demuth
relation country of citizenship
type political territorial entity
['Demuth', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Harald_Demuth property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3337033 Q183
P530 P495
Q15617994
USER
Which administrative territories have a diplomatic relationship with Germany and are the countries of origin of NatraZahor France ?
AND((Q183,P530,c(Q15617994)), (Q3337033,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q3337033
relation P495
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q3337033', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { resource:Q183 property:P530 ?v . resource:Q3337033 property:P495 ?v . ?v rdf:type ontology:Q15617994 }
NatraZahor France Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity NatraZahor France
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['NatraZahor France', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Germany property:diplomatic_relation ?v . resource:NatraZahor_France property:country_of_origin ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q183,P530,c(Q15617994)), (Q3337033,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q3337033
relation P495
type Q15617994
[ANSWER] have a diplomatic relationship with Germany and are the countries of origin of NatraZahor [ANSWER]
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q3337033', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { resource:Q183 property:P530 ?v . resource:Q3337033 property:P495 ?v . ?v rdf:type ontology:Q15617994 }
France
France have a diplomatic relationship with Germany and are the countries of origin of NatraZahor France
France
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity NatraZahor France
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['NatraZahor France', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Germany property:diplomatic_relation ?v . resource:NatraZahor_France property:country_of_origin ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q142 Q24090787
P27
Q502895
USER
Is Honoré Declerck a native of that administrative territory ?
(Q24090787,P27,Q142)
action is_in
entity Q142
action find
entity Q24090787
relation P27
['Q24090787', 'P27', 'Q142']
ASK WHERE { resource:Q24090787 property:P27 resource:Q142 }
France Honoré Declerck
action is_in
entity France
action find
entity Honoré Declerck
relation country of citizenship
['Honoré Declerck', 'country of citizenship', 'France']
ASK WHERE { resource:Honoré_Declerck property:country_of_citizenship resource:France }
[]
common name
SYSTEM
YES
(Q24090787,P27,Q142)
action is_in
entity Q142
action find
entity Q24090787
relation P27
[ANSWER]
['Q24090787', 'P27', 'Q142']
ASK WHERE { resource:Q24090787 property:P27 resource:Q142 }
Yes
action is_in
entity France
action find
entity Honoré Declerck
relation country of citizenship
['Honoré Declerck', 'country of citizenship', 'France']
ASK WHERE { resource:Honoré_Declerck property:country_of_citizenship resource:France }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q183 Q252 Q423
P530
Q15617994
USER
Does Germany have diplomatic relations with Indonesia and North Korea ?
(Q183,P530,Q252) (Q183,P530,Q423)
action is_in
entity Q183
action intersection
action find_reverse
entity Q252
relation P530
action find_reverse
entity Q423
relation P530
['Q183', 'P530', 'Q252'] ['Q183', 'P530', 'Q423']
ASK WHERE { resource:Q183 property:P530 resource:Q252 . resource:Q183 property:P530 resource:Q423 }
Germany Indonesia North Korea
action is_in
entity Germany
action intersection
action find_reverse
entity Indonesia
relation diplomatic relation
action find_reverse
entity North Korea
relation diplomatic relation
['Germany', 'diplomatic relation', 'Indonesia'] ['Germany', 'diplomatic relation', 'North Korea']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Indonesia . resource:Germany property:diplomatic_relation resource:North_Korea }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q183,P530,Q252) (Q183,P530,Q423)
action is_in
entity Q183
action intersection
action find_reverse
entity Q252
relation P530
action find_reverse
entity Q423
relation P530
[ANSWER]
['Q183', 'P530', 'Q252'] ['Q183', 'P530', 'Q423']
ASK WHERE { resource:Q183 property:P530 resource:Q252 . resource:Q183 property:P530 resource:Q423 }
Yes
action is_in
entity Germany
action intersection
action find_reverse
entity Indonesia
relation diplomatic relation
action find_reverse
entity North Korea
relation diplomatic relation
['Germany', 'diplomatic relation', 'Indonesia'] ['Germany', 'diplomatic relation', 'North Korea']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Indonesia . resource:Germany property:diplomatic_relation resource:North_Korea }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q58918 Q142
P47
Q15617994
USER
Which administrative territories share border with France or Vairano Patenora ?
OR((Q142,P47,c(Q15617994)), (Q58918,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q142
relation P47
action find
entity Q58918
relation P47
type Q15617994
{'OR': [['Q142', 'P47', {'concept': 'Q15617994'}], ['Q58918', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q142 property:P47 ?o } UNION { resource:Q58918 property:P47 ?o } } . ?o rdf:type ontology:Q15617994 }
Vairano Patenora France
action filter_type
action union
action find
entity France
relation shares border with
action find
entity Vairano Patenora
relation shares border with
type designation for an administrative territorial entity
{'OR': [['France', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Vairano Patenora', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:France property:shares_border_with ?o } UNION { resource:Vairano_Patenora property:shares_border_with ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q58429 Q58807 Q58798 Q29 Q58905 Q717 Q58800 Q155 Q32
SYSTEM
Some of them are Switzerland, Ailano, Riardo, Presenzano, Spain, Teano, Venezuela, Raviscanina, Brazil, Luxembourg
Q38 Q717 Q54965 Q145 Q155 Q730 Q29999 Q31 Q228 Q58800 Q32 Q58763 Q58454 Q58796 Q58807 Q58798 Q29 Q39 Q58429 Q58905
OR((Q142,P47,c(Q15617994)), (Q58918,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q142
relation P47
action find
entity Q58918
relation P47
type Q15617994
[ANSWERS] share border with France or Vairano Patenora
{'OR': [['Q142', 'P47', {'concept': 'Q15617994'}], ['Q58918', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q142 property:P47 ?o } UNION { resource:Q58918 property:P47 ?o } } . ?o rdf:type ontology:Q15617994 }
Italy Venezuela Marzano Appio United Kingdom Brazil Suriname Kingdom of the Netherlands Belgium Andorra Raviscanina Luxembourg Pietravairano Caianello Pratella Riardo Presenzano Spain Switzerland Ailano Teano
Switzerland, Ailano, Riardo, Presenzano, Spain, Teano, Venezuela, Raviscanina, Brazil and Luxembourg share border with France or Vairano Patenora
Switzerland Ailano Riardo Presenzano Spain Teano Venezuela Raviscanina Brazil Luxembourg
action filter_type
action union
action find
entity France
relation shares border with
action find
entity Vairano Patenora
relation shares border with
type designation for an administrative territorial entity
{'OR': [['France', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Vairano Patenora', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:France property:shares_border_with ?o } UNION { resource:Vairano_Patenora property:shares_border_with ?o } } . ?o 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
P495
Q15617994 Q2342494 Q15416
USER
How many administrative territories are the countries of origin of around 683 collectables and television programs ?
(c(Q2342494)|c(Q15416),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
value 683
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?b ) WHERE { { ?m property:P495 ?e . ?e rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q2342494 } UNION { ?m property:P495 ?e . ?e rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15416 } } GROUP BY ?e } . FILTER ( ?b = 683 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
value 683
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?b ) WHERE { { ?m property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:collectable } UNION { ?m property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:television_program } } GROUP BY ?e } . FILTER ( ?b = 683 ) }
[]
designation for an administrative territorial entity collectable television program
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(Q2342494)|c(Q15416),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
value 683
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?b ) WHERE { { ?m property:P495 ?e . ?e rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q2342494 } UNION { ?m property:P495 ?e . ?e rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15416 } } GROUP BY ?e } . FILTER ( ?b = 683 ) }
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 collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
value 683
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?b ) WHERE { { ?m property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:collectable } UNION { ?m property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:television_program } } GROUP BY ?e } . FILTER ( ?b = 683 ) }
[]