Simple Question (Direct)
Simple Question
Q1874368
P39
Q12737077
USER
What was the position held by Ludwig Fachs ?
(Q1874368,P39,c(Q12737077))
action filter_type
action find
entity Q1874368
relation P39
type Q12737077
['Q1874368', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1874368 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Ludwig Fachs
action filter_type
action find
entity Ludwig Fachs
relation position held
type occupation
['Ludwig Fachs', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Ludwig_Fachs property:position_held ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q1874368,P39,c(Q12737077))
action filter_type
action find
entity Q1874368
relation P39
type Q12737077
The position held by Ludwig Fachs was the [ANSWER]
['Q1874368', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1874368 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
mayor
The position held by Ludwig Fachs was the mayor
mayor
action filter_type
action find
entity Ludwig Fachs
relation position held
type occupation
['Ludwig Fachs', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Ludwig_Fachs property:position_held ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1874368
P20
Q515
USER
Which city is the place of death of that person ?
(Q30185,P20,c(Q515))
action filter_type
action find
entity Q1874368
relation P20
type Q515
['Q30185', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q515 . resource:Q1874368 property:P20 ?c }
Ludwig Fachs
action filter_type
action find
entity Ludwig Fachs
relation place of death
type city
['mayor', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:city . resource:Ludwig_Fachs property:place_of_death ?c }
[]
city
Q2079
SYSTEM
Leipzig
Q2079
(Q30185,P20,c(Q515))
action filter_type
action find
entity Q1874368
relation P20
type Q515
[ANSWER] is the place of death of that person
['Q30185', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q515 . resource:Q1874368 property:P20 ?c }
Leipzig
Leipzig is the place of death of that person
Leipzig
action filter_type
action find
entity Ludwig Fachs
relation place of death
type city
['mayor', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:city . resource:Ludwig_Fachs property:place_of_death ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1874368
P19
Q15617994
USER
Where was that person born ?
(Q2079,P19,c(Q15617994))
action filter_type
action find
entity Q1874368
relation P19
type Q15617994
['Q2079', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1874368 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Ludwig Fachs
action filter_type
action find
entity Ludwig Fachs
relation place of birth
type designation for an administrative territorial entity
['Leipzig', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Ludwig_Fachs property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q518368
SYSTEM
Bad Langensalza
Q518368
(Q2079,P19,c(Q15617994))
action filter_type
action find
entity Q1874368
relation P19
type Q15617994
That person was born in [ANSWER]
['Q2079', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1874368 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Bad Langensalza
That person was born in Bad Langensalza
Bad Langensalza
action filter_type
action find
entity Ludwig Fachs
relation place of birth
type designation for an administrative territorial entity
['Leipzig', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Ludwig_Fachs property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q518368 Q183
P17
Q1048835
USER
Is Bad Langensalza a part of Germany ?
(Q518368,P17,Q183)
action is_in
entity Q183
action find
entity Q518368
relation P17
['Q518368', 'P17', 'Q183']
ASK WHERE { resource:Q518368 property:P17 resource:Q183 }
Bad Langensalza Germany
action is_in
entity Germany
action find
entity Bad Langensalza
relation country
['Bad Langensalza', 'country', 'Germany']
ASK WHERE { resource:Bad_Langensalza property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q518368,P17,Q183)
action is_in
entity Q183
action find
entity Q518368
relation P17
[ANSWER]
['Q518368', 'P17', 'Q183']
ASK WHERE { resource:Q518368 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Bad Langensalza
relation country
['Bad Langensalza', 'country', 'Germany']
ASK WHERE { resource:Bad_Langensalza property:country resource:Germany }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q843
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with around the same number of administrative territories as Pakistan ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q843
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q843 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?u ) WHERE { ?d property:P530 ?f . ?d rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?d } }
Pakistan
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Pakistan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Pakistan property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?u ) WHERE { ?d property:diplomatic_relation ?f . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q843
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q843 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?u ) WHERE { ?d property:P530 ?f . ?d rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?d } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia 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 Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
148
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Pakistan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Pakistan property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?d ( COUNT ( ?f ) AS ?u ) WHERE { ?d property:diplomatic_relation ?f . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1027
P530
Q15617994 Q15617994
USER
And also tell me about Mauritius?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1027
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { FILTER ( ?l = ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { ?e rdf:type ontology:Q15617994 . resource:Q1027 property:P530 ?e } } . { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?l ) WHERE { ?j property:P530 ?s . ?j rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?j } }
Mauritius
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Mauritius
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { FILTER ( ?l = ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mauritius property:diplomatic_relation ?e } } . { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?l ) WHERE { ?j property:diplomatic_relation ?s . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
147
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1027
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { FILTER ( ?l = ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { ?e rdf:type ontology:Q15617994 . resource:Q1027 property:P530 ?e } } . { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?l ) WHERE { ?j property:P530 ?s . ?j rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?j } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
147
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Mauritius
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { FILTER ( ?l = ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mauritius property:diplomatic_relation ?e } } . { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?l ) WHERE { ?j property:diplomatic_relation ?s . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q18950412 Q183
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relations with Germany and are not Besselaar present in ?
AND((Q183,P530,c(Q15617994)), NOT((Q18950412,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q18950412
relation P17
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q18950412', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?t . FILTER NOT EXISTS { resource:Q18950412 property:P17 ?t } }
Besselaar Germany
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Besselaar
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Besselaar', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?t . FILTER NOT EXISTS { resource:Besselaar property:country ?t } }
[]
designation for an administrative territorial entity
Q27 Q801 Q28 Q347 Q1008 Q967 Q214 Q902 Q945 Q917
SYSTEM
Some of them are Ireland, Israel, Hungary, Liechtenstein, Côte d'Ivoire, Burundi, Slovakia, Bangladesh, Togo, Bhutan
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
AND((Q183,P530,c(Q15617994)), NOT((Q18950412,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q18950412
relation P17
type Q15617994
[ANSWERS] have diplomatic relations with Germany and are not Besselaar present in
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q18950412', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?t . FILTER NOT EXISTS { resource:Q18950412 property:P17 ?t } }
Panama Israel Costa Rica Peru India Argentina France United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Ireland, Israel, Hungary, Liechtenstein, Côte d'Ivoire, Burundi, Slovakia, Bangladesh, Togo and Bhutan have diplomatic relations with Germany and are not Besselaar present in
Ireland Israel Hungary Liechtenstein Côte d'Ivoire Burundi Slovakia Bangladesh Togo Bhutan
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Besselaar
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Besselaar', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?t . FILTER NOT EXISTS { resource:Besselaar property:country ?t } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1793164
P530
Q1048835
USER
Do Campo Novo do Parecis have tactful political relations with those administrative territories ?
(Q1793164,P530,Q27) (Q1793164,P530,Q801) (Q1793164,P530,Q28) (Q1793164,P530,Q347) (Q1793164,P530,Q1008) (Q1793164,P530,Q967) (Q1793164,P530,Q214) (Q1793164,P530,Q902) (Q1793164,P530,Q945) (Q1793164,P530,Q917)
action is_in
entity prev_answer
action find
entity Q1793164
relation P530
['Q1793164', 'P530', 'Q27'] ['Q1793164', 'P530', 'Q801'] ['Q1793164', 'P530', 'Q28'] ['Q1793164', 'P530', 'Q347'] ['Q1793164', 'P530', 'Q1008'] ['Q1793164', 'P530', 'Q967'] ['Q1793164', 'P530', 'Q214'] ['Q1793164', 'P530', 'Q902'] ['Q1793164', 'P530', 'Q945'] ['Q1793164', 'P530', 'Q917']
ASK WHERE { resource:Q1793164 property:P530 ?m . VALUES ( ?m ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
Campo Novo do Parecis
action is_in
entity prev_answer
action find
entity Campo Novo do Parecis
relation diplomatic relation
['Campo Novo do Parecis', 'diplomatic relation', 'Ireland'] ['Campo Novo do Parecis', 'diplomatic relation', 'Israel'] ['Campo Novo do Parecis', 'diplomatic relation', 'Hungary'] ['Campo Novo do Parecis', 'diplomatic relation', 'Liechtenstein'] ['Campo Novo do Parecis', 'diplomatic relation', "Côte d'Ivoire"] ['Campo Novo do Parecis', 'diplomatic relation', 'Burundi'] ['Campo Novo do Parecis', 'diplomatic relation', 'Slovakia'] ['Campo Novo do Parecis', 'diplomatic relation', 'Bangladesh'] ['Campo Novo do Parecis', 'diplomatic relation', 'Togo'] ['Campo Novo do Parecis', 'diplomatic relation', 'Bhutan']
ASK WHERE { resource:Campo_Novo_do_Parecis property:diplomatic_relation ?m . VALUES ( ?m ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
political territorial entity
SYSTEM
NO
(Q1793164,P530,Q27) (Q1793164,P530,Q801) (Q1793164,P530,Q28) (Q1793164,P530,Q347) (Q1793164,P530,Q1008) (Q1793164,P530,Q967) (Q1793164,P530,Q214) (Q1793164,P530,Q902) (Q1793164,P530,Q945) (Q1793164,P530,Q917)
action is_in
entity prev_answer
action find
entity Q1793164
relation P530
[ANSWER]
['Q1793164', 'P530', 'Q27'] ['Q1793164', 'P530', 'Q801'] ['Q1793164', 'P530', 'Q28'] ['Q1793164', 'P530', 'Q347'] ['Q1793164', 'P530', 'Q1008'] ['Q1793164', 'P530', 'Q967'] ['Q1793164', 'P530', 'Q214'] ['Q1793164', 'P530', 'Q902'] ['Q1793164', 'P530', 'Q945'] ['Q1793164', 'P530', 'Q917']
ASK WHERE { resource:Q1793164 property:P530 ?m . VALUES ( ?m ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
No
action is_in
entity prev_answer
action find
entity Campo Novo do Parecis
relation diplomatic relation
['Campo Novo do Parecis', 'diplomatic relation', 'Ireland'] ['Campo Novo do Parecis', 'diplomatic relation', 'Israel'] ['Campo Novo do Parecis', 'diplomatic relation', 'Hungary'] ['Campo Novo do Parecis', 'diplomatic relation', 'Liechtenstein'] ['Campo Novo do Parecis', 'diplomatic relation', "Côte d'Ivoire"] ['Campo Novo do Parecis', 'diplomatic relation', 'Burundi'] ['Campo Novo do Parecis', 'diplomatic relation', 'Slovakia'] ['Campo Novo do Parecis', 'diplomatic relation', 'Bangladesh'] ['Campo Novo do Parecis', 'diplomatic relation', 'Togo'] ['Campo Novo do Parecis', 'diplomatic relation', 'Bhutan']
ASK WHERE { resource:Campo_Novo_do_Parecis property:diplomatic_relation ?m . VALUES ( ?m ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11648443 Q1874368
P19 P937
Q515
USER
Which cities did Ludwig Fachs work or are the places of birth of Mahiru Suzuki ?
OR((Q1874368,P937,c(Q515)), (Q11648443,P19,c(Q515)))
action filter_type
action union
action find
entity Q1874368
relation P937
action find
entity Q11648443
relation P19
type Q515
{'OR': [['Q1874368', 'P937', {'concept': 'Q515'}], ['Q11648443', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1874368 property:P937 ?i } UNION { resource:Q11648443 property:P19 ?i } } . ?i rdf:type ontology:Q515 }
Mahiru Suzuki Ludwig Fachs
action filter_type
action union
action find
entity Ludwig Fachs
relation work location
action find
entity Mahiru Suzuki
relation place of birth
type city
{'OR': [['Ludwig Fachs', 'work location', {'concept': 'city'}], ['Mahiru Suzuki', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Ludwig_Fachs property:work_location ?i } UNION { resource:Mahiru_Suzuki property:place_of_birth ?i } } . ?i rdf:type ontology:city }
[]
city
Q734416 Q2079
SYSTEM
Tsuruoka, Leipzig
Q734416 Q2079
OR((Q1874368,P937,c(Q515)), (Q11648443,P19,c(Q515)))
action filter_type
action union
action find
entity Q1874368
relation P937
action find
entity Q11648443
relation P19
type Q515
Ludwig Fachs worked in [ANSWERS] or are the places of birth of Mahiru Suzuki
{'OR': [['Q1874368', 'P937', {'concept': 'Q515'}], ['Q11648443', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1874368 property:P937 ?i } UNION { resource:Q11648443 property:P19 ?i } } . ?i rdf:type ontology:Q515 }
Tsuruoka Leipzig
Ludwig Fachs worked in Tsuruoka and Leipzig or are the places of birth of Mahiru Suzuki
Tsuruoka Leipzig
action filter_type
action union
action find
entity Ludwig Fachs
relation work location
action find
entity Mahiru Suzuki
relation place of birth
type city
{'OR': [['Ludwig Fachs', 'work location', {'concept': 'city'}], ['Mahiru Suzuki', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Ludwig_Fachs property:work_location ?i } UNION { resource:Mahiru_Suzuki property:place_of_birth ?i } } . ?i rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11648443
P734
Q82799
USER
Which name is associated with Mahiru Suzuki ?
(Q734416,P734,c(Q82799)) (Q2079,P734,c(Q82799))
action filter_type
action find
entity Q11648443
relation P734
type Q82799
['Q734416', 'P734', {'concept': 'Q82799'}] ['Q2079', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q11648443 property:P734 ?q . ?q rdf:type ontology:Q82799 }
Mahiru Suzuki
action filter_type
action find
entity Mahiru Suzuki
relation family name
type name
['Tsuruoka', 'family name', {'concept': 'name'}] ['Leipzig', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Mahiru_Suzuki property:family_name ?q . ?q rdf:type ontology:name }
[]
name
Q1533615
SYSTEM
Suzuki
Q1533615
(Q734416,P734,c(Q82799)) (Q2079,P734,c(Q82799))
action filter_type
action find
entity Q11648443
relation P734
type Q82799
Mori [ANSWER] is associated with Mahiru [ANSWER]
['Q734416', 'P734', {'concept': 'Q82799'}] ['Q2079', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q11648443 property:P734 ?q . ?q rdf:type ontology:Q82799 }
Suzuki
Mori Suzuki is associated with Mahiru Suzuki
Suzuki
action filter_type
action find
entity Mahiru Suzuki
relation family name
type name
['Tsuruoka', 'family name', {'concept': 'name'}] ['Leipzig', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Mahiru_Suzuki property:family_name ?q . ?q rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q11060274 Q2342494
USER
How many administrative territories are expressed in exactly 1 prints or collectables ?
(c(Q11060274)|c(Q2342494),P180,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 1
[[{'concept': 'Q11060274'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?u WHERE { { ?o property:P180 ?u . ?u rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q2342494 } UNION { ?o property:P180 ?u . ?o rdf:type ontology:Q11060274 . ?u rdf:type ontology:Q15617994 } } GROUP BY ?u } . FILTER ( ?f = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 1
[[{'concept': 'print'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?u WHERE { { ?o property:depicts ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:collectable } UNION { ?o property:depicts ?u . ?o rdf:type ontology:print . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?u } . FILTER ( ?f = 1 ) }
[]
designation for an administrative territorial entity print collectable
SYSTEM
11
Q47505 Q131596 Q1028 Q17 Q298 Q13320 Q79 Q1011 Q913434 Q376896 Q34876
(c(Q11060274)|c(Q2342494),P180,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 1
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?u WHERE { { ?o property:P180 ?u . ?u rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q2342494 } UNION { ?o property:P180 ?u . ?o rdf:type ontology:Q11060274 . ?u rdf:type ontology:Q15617994 } } GROUP BY ?u } . FILTER ( ?f = 1 ) }
Dolo farm Morocco Japan Chile Savona Egypt Cape Verde Les Halles Grenelle province
11
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 1
[[{'concept': 'print'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?u WHERE { { ?o property:depicts ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:collectable } UNION { ?o property:depicts ?u . ?o rdf:type ontology:print . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?u } . FILTER ( ?f = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11648443
P21
Q290
USER
Which sex does Mahiru Suzuki have ?
(Q11648443,P21,c(Q290))
action filter_type
action find
entity Q11648443
relation P21
type Q290
['Q11648443', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q11648443 property:P21 ?v . ?v rdf:type ontology:Q290 }
Mahiru Suzuki
action filter_type
action find
entity Mahiru Suzuki
relation gender
type sex
['Mahiru Suzuki', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Mahiru_Suzuki property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q11648443,P21,c(Q290))
action filter_type
action find
entity Q11648443
relation P21
type Q290
Mahiru Suzuki has a [ANSWER]
['Q11648443', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q11648443 property:P21 ?v . ?v rdf:type ontology:Q290 }
female
Mahiru Suzuki has a female
female
action filter_type
action find
entity Mahiru Suzuki
relation gender
type sex
['Mahiru Suzuki', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Mahiru_Suzuki property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q801
P437
Q82799
USER
What was name that used Israel as a means of distribution ?
(c(Q82799),P437,Q801)
action filter_type
action find_reverse
entity Q801
relation P437
type Q82799
[{'concept': 'Q82799'}, 'P437', 'Q801']
SELECT DISTINCT ?t WHERE { ?t property:P437 resource:Q801 . ?t rdf:type ontology:Q82799 }
Israel
action filter_type
action find_reverse
entity Israel
relation distribution
type name
[{'concept': 'name'}, 'distribution', 'Israel']
SELECT DISTINCT ?t WHERE { ?t property:distribution resource:Israel . ?t rdf:type ontology:name }
[]
name
Q19891513
SYSTEM
Fonseca
Q19891513
(c(Q82799),P437,Q801)
action filter_type
action find_reverse
entity Q801
relation P437
type Q82799
Name that used Israel as a means of distribution was the [ANSWER]
[{'concept': 'Q82799'}, 'P437', 'Q801']
SELECT DISTINCT ?t WHERE { ?t property:P437 resource:Q801 . ?t rdf:type ontology:Q82799 }
Fonseca
Name that used Israel as a means of distribution was the Fonseca
Fonseca
action filter_type
action find_reverse
entity Israel
relation distribution
type name
[{'concept': 'name'}, 'distribution', 'Israel']
SELECT DISTINCT ?t WHERE { ?t property:distribution resource:Israel . ?t rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q19891513 Q1321
P407
Q34770
USER
Is Spanish the language of work for that name ?
(Q19891513,P407,Q1321)
action is_in
entity Q1321
action find
entity Q19891513
relation P407
['Q19891513', 'P407', 'Q1321']
ASK WHERE { resource:Q19891513 property:P407 resource:Q1321 }
Fonseca Spanish
action is_in
entity Spanish
action find
entity Fonseca
relation language of work or name
['Fonseca', 'language of work or name', 'Spanish']
ASK WHERE { resource:Fonseca property:language_of_work_or_name resource:Spanish }
[]
language
SYSTEM
YES
(Q19891513,P407,Q1321)
action is_in
entity Q1321
action find
entity Q19891513
relation P407
[ANSWER]
['Q19891513', 'P407', 'Q1321']
ASK WHERE { resource:Q19891513 property:P407 resource:Q1321 }
Yes
action is_in
entity Spanish
action find
entity Fonseca
relation language of work or name
['Fonseca', 'language of work or name', 'Spanish']
ASK WHERE { resource:Fonseca property:language_of_work_or_name resource:Spanish }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q902 Q1751926
P530
Q1048835
USER
Does Cubas de la Sagra have diplomatic relationships with Bangladesh ?
(Q902,P530,Q1751926)
action is_in
entity Q1751926
action find
entity Q902
relation P530
['Q902', 'P530', 'Q1751926']
ASK WHERE { resource:Q902 property:P530 resource:Q1751926 }
Bangladesh Cubas de la Sagra
action is_in
entity Cubas de la Sagra
action find
entity Bangladesh
relation diplomatic relation
['Bangladesh', 'diplomatic relation', 'Cubas de la Sagra']
ASK WHERE { resource:Bangladesh property:diplomatic_relation resource:Cubas_de_la_Sagra }
[]
political territorial entity
SYSTEM
NO
(Q902,P530,Q1751926)
action is_in
entity Q1751926
action find
entity Q902
relation P530
[ANSWER]
['Q902', 'P530', 'Q1751926']
ASK WHERE { resource:Q902 property:P530 resource:Q1751926 }
No
action is_in
entity Cubas de la Sagra
action find
entity Bangladesh
relation diplomatic relation
['Bangladesh', 'diplomatic relation', 'Cubas de la Sagra']
ASK WHERE { resource:Bangladesh property:diplomatic_relation resource:Cubas_de_la_Sagra }
[]