Simple Question (Direct)
Simple Question
Q3121926
P27
Q15617994
USER
Which administrative territory is Guy Le Jaouen a civilian of ?
(Q3121926,P27,c(Q15617994))
action filter_type
action find
entity Q3121926
relation P27
type Q15617994
['Q3121926', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q3121926 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Guy Le Jaouen
action filter_type
action find
entity Guy Le Jaouen
relation country of citizenship
type designation for an administrative territorial entity
['Guy Le Jaouen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Guy_Le_Jaouen property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3121926,P27,c(Q15617994))
action filter_type
action find
entity Q3121926
relation P27
type Q15617994
[ANSWER] is Guy Le Jaouen a civilian of
['Q3121926', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q3121926 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
France
France is Guy Le Jaouen a civilian of
France
action filter_type
action find
entity Guy Le Jaouen
relation country of citizenship
type designation for an administrative territorial entity
['Guy Le Jaouen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Guy_Le_Jaouen property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3121926
P19
Q20667921
USER
Which french administrative division is the birthplace of that person ?
(Q142,P19,c(Q20667921))
action filter_type
action find
entity Q3121926
relation P19
type Q20667921
['Q142', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q3121926 property:P19 ?m . ?m rdf:type ontology:Q20667921 }
Guy Le Jaouen
action filter_type
action find
entity Guy Le Jaouen
relation place of birth
type type of french administrative division
['France', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Guy_Le_Jaouen property:place_of_birth ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q329664
SYSTEM
Le Creusot
Q329664
(Q142,P19,c(Q20667921))
action filter_type
action find
entity Q3121926
relation P19
type Q20667921
[ANSWER] is the birthplace of that person
['Q142', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q3121926 property:P19 ?m . ?m rdf:type ontology:Q20667921 }
Le Creusot
Le Creusot is the birthplace of that person
Le Creusot
action filter_type
action find
entity Guy Le Jaouen
relation place of birth
type type of french administrative division
['France', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Guy_Le_Jaouen property:place_of_birth ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q790
P495
Q15617994 Q15416 Q2342494
USER
Which administrative territories are the origin of more number of television programs or collectables than Haiti ?
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q790
relation P495
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) ?f WHERE { { ?v property:P495 ?f . ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q2342494 } UNION { ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15416 . ?v property:P495 ?f } } GROUP BY ?f } . FILTER ( ?m > ?z ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } . ?w property:P495 resource:Q790 } } }
Haiti
action greater
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 collectable
action count
action filter_multi_types
action find_reverse
entity Haiti
relation country of origin
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) ?f WHERE { { ?v property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:collectable } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:television_program . ?v property:country_of_origin ?f } } GROUP BY ?f } . FILTER ( ?m > ?z ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:television_program ) ( ontology:collectable ) } } . ?w property:country_of_origin resource:Haiti } } }
[]
designation for an administrative territorial entity television program collectable
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q37 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q954 Q884 Q881 Q822 Q241 Q33 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q854 Q424 Q230 Q232 Q20 Q1041 Q27 Q28 Q189 Q843 Q1028 Q736 Q225 Q224 Q222 Q96 Q17 Q902 Q1036 Q1033 Q191 Q298 Q114 Q117 Q754 Q212 Q213 Q214 Q215 Q218 Q219 Q833 Q79 Q77 Q858 Q878 Q774 Q1011 Q29 Q869
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q790
relation P495
type Q15416
type Q2342494
[ANSWERS] are the origin of more number of television programs or collectables than Haiti
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) ?f WHERE { { ?v property:P495 ?f . ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q2342494 } UNION { ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15416 . ?v property:P495 ?f } } GROUP BY ?f } . FILTER ( ?m > ?z ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } . ?w property:P495 resource:Q790 } } }
Israel Peru India Argentina France Netherlands United Kingdom People's Republic of China Lithuania Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iran Zimbabwe South Korea Vietnam Lebanon Cuba Finland Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Sri Lanka Cambodia Georgia Kazakhstan Norway Senegal Ireland Hungary Iceland Pakistan Morocco Ecuador Bosnia and Herzegovina Croatia Albania Mexico Japan Bangladesh Uganda Nigeria Estonia Chile Kenya Ghana Trinidad and Tobago Ukraine Czech Republic Slovakia Slovenia Romania Bulgaria Malaysia Egypt Uruguay Syria United Arab Emirates Guatemala Cape Verde Spain Thailand
Italy, Brazil and United States of America are the origin of more number of television programs or collectables than Haiti
Italy Brazil United States of America
action greater
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 collectable
action count
action filter_multi_types
action find_reverse
entity Haiti
relation country of origin
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) ?f WHERE { { ?v property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:collectable } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:television_program . ?v property:country_of_origin ?f } } GROUP BY ?f } . FILTER ( ?m > ?z ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { ?w rdf:type ?g . VALUES ( ?g ) { ( ontology:television_program ) ( ontology:collectable ) } } . ?w property:country_of_origin resource:Haiti } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q4628
P495
Q15617994 Q15416 Q2342494
USER
And also tell me about Faroe Islands?
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q4628
relation P495
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?t WHERE { { ?j property:P495 ?t . ?j rdf:type ontology:Q15416 . ?t rdf:type ontology:Q15617994 } UNION { ?j property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P495 resource:Q4628 . { VALUES ( ?z ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } . ?o rdf:type ?z } } } . FILTER ( ?b > ?w ) }
Faroe Islands
action greater
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 collectable
action count
action filter_multi_types
action find_reverse
entity Faroe Islands
relation country of origin
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?t WHERE { { ?j property:country_of_origin ?t . ?j rdf:type ontology:television_program . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:country_of_origin resource:Faroe_Islands . { VALUES ( ?z ) { ( ontology:television_program ) ( ontology:collectable ) } . ?o rdf:type ?z } } } . FILTER ( ?b > ?w ) }
[]
designation for an administrative territorial entity television program collectable
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q37 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q851 Q854 Q424 Q230 Q232 Q20 Q1041 Q27 Q28 Q921 Q1049 Q189 Q843 Q1028 Q736 Q225 Q224 Q222 Q96 Q17 Q902 Q1036 Q1033 Q191 Q298 Q114 Q117 Q754 Q212 Q213 Q214 Q215 Q218 Q219 Q833 Q1008 Q79 Q77 Q858 Q878 Q774 Q810 Q1014 Q1011 Q29 Q869
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q4628
relation P495
type Q15416
type Q2342494
[ANSWERS]
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?t WHERE { { ?j property:P495 ?t . ?j rdf:type ontology:Q15416 . ?t rdf:type ontology:Q15617994 } UNION { ?j property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P495 resource:Q4628 . { VALUES ( ?z ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } . ?o rdf:type ?z } } } . FILTER ( ?b > ?w ) }
Israel Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Lithuania Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Saudi Arabia Sri Lanka Cambodia Georgia Kazakhstan Norway Senegal Ireland Hungary Brunei Sudan Iceland Pakistan Morocco Ecuador Bosnia and Herzegovina Croatia Albania Mexico Japan Bangladesh Uganda Nigeria Estonia Chile Kenya Ghana Trinidad and Tobago Ukraine Czech Republic Slovakia Slovenia Romania Bulgaria Malaysia Côte d'Ivoire Egypt Uruguay Syria United Arab Emirates Guatemala Jordan Liberia Cape Verde Spain Thailand
Italy Brazil United States of America
action greater
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 collectable
action count
action filter_multi_types
action find_reverse
entity Faroe Islands
relation country of origin
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?t WHERE { { ?j property:country_of_origin ?t . ?j rdf:type ontology:television_program . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:country_of_origin resource:Faroe_Islands . { VALUES ( ?z ) { ( ontology:television_program ) ( ontology:collectable ) } . ?o rdf:type ?z } } } . FILTER ( ?b > ?w ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q329664
P20
Q502895
USER
Which people have Le Creusot as place of death ?
(c(Q502895),P20,Q329664)
action filter_type
action find_reverse
entity Q329664
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q329664']
SELECT DISTINCT ?h WHERE { ?h property:P20 resource:Q329664 . ?h rdf:type ontology:Q502895 }
Le Creusot
action filter_type
action find_reverse
entity Le Creusot
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Le Creusot']
SELECT DISTINCT ?h WHERE { ?h property:place_of_death resource:Le_Creusot . ?h rdf:type ontology:common_name }
[]
common name
Q2824907 Q3092530 Q3103412
SYSTEM
Adolphe Schneider, Félix Martin, Georges Riguet
Q3557221 Q18744841 Q3103412 Q3421122 Q2824907 Q8307948 Q3092530
(c(Q502895),P20,Q329664)
action filter_type
action find_reverse
entity Q329664
relation P20
type Q502895
[ANSWERS] have Le Creusot as place of death
[{'concept': 'Q502895'}, 'P20', 'Q329664']
SELECT DISTINCT ?h WHERE { ?h property:P20 resource:Q329664 . ?h rdf:type ontology:Q502895 }
Victor Chavet Bernard Loiseau Georges Riguet Raymond Rochette Adolphe Schneider Claude Coureau Félix Martin
Adolphe Schneider, Félix Martin and Georges Riguet have Le Creusot as place of death
Adolphe Schneider Félix Martin Georges Riguet
action filter_type
action find_reverse
entity Le Creusot
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Le Creusot']
SELECT DISTINCT ?h WHERE { ?h property:place_of_death resource:Le_Creusot . ?h rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3103412
P463
Q48204
USER
What was that person a member of ?
(Q3103412,P463,c(Q48204))
action filter_type
action find
entity Q3103412
relation P463
type Q48204
['Q3103412', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?f WHERE { resource:Q3103412 property:P463 ?f . ?f rdf:type ontology:Q48204 }
Georges Riguet
action filter_type
action find
entity Georges Riguet
relation member of
type voluntary association
['Georges Riguet', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?f WHERE { resource:Georges_Riguet property:member_of ?f . ?f rdf:type ontology:voluntary_association }
[]
voluntary association
Clarification for simple ques.
Q2824907
SYSTEM
Did you mean Adolphe Schneider ?
Q2824907 Q3092530 Q3103412
(Q2824907,P463,c(Q48204)) (Q3092530,P463,c(Q48204)) (Q3103412,P463,c(Q48204))
[ANSWER]
['Q2824907', 'P463', {'concept': 'Q48204'}] ['Q3092530', 'P463', {'concept': 'Q48204'}] ['Q3103412', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?f WHERE { resource:Q3103412 property:P463 ?f . ?f rdf:type ontology:Q48204 }
Adolphe Schneider Félix Martin Georges Riguet
Did you mean Adolphe Schneider ?
Adolphe Schneider
['Adolphe Schneider', 'member of', {'concept': 'voluntary association'}] ['Félix Martin', 'member of', {'concept': 'voluntary association'}] ['Georges Riguet', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?f WHERE { resource:Georges_Riguet property:member_of ?f . ?f rdf:type ontology:voluntary_association }
[]
Simple Question (Coreferenced)
USER
No, I meant Georges Riguet. Could you tell me the answer for that?
(Q3103412,P463,c(Q48204))
Q3103412
['Q3103412', 'P463', {'concept': 'Q48204'}]
['Georges Riguet', 'member of', {'concept': 'voluntary association'}]
[]
Q2822402
SYSTEM
Academy of Morvan
Q2822402
(Q3103412,P463,c(Q48204))
action filter_type
action find
entity Q3103412
relation P463
type Q48204
That person a member of was the [ANSWER]
['Q3103412', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?f WHERE { resource:Q3103412 property:P463 ?f . ?f rdf:type ontology:Q48204 }
Academy of Morvan
That person a member of was the Academy of Morvan
Academy of Morvan
action filter_type
action find
entity Georges Riguet
relation member of
type voluntary association
['Georges Riguet', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?f WHERE { resource:Georges_Riguet property:member_of ?f . ?f rdf:type ontology:voluntary_association }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2394706 Q30
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with United States of America or are Straža pri Dolu a part of ?
OR((Q30,P530,c(Q15617994)), (Q2394706,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P530
action find
entity Q2394706
relation P17
type Q15617994
{'OR': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q2394706', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { { resource:Q30 property:P530 ?f } UNION { resource:Q2394706 property:P17 ?f } } }
Straža pri Dolu United States of America
action filter_type
action union
action find
entity United States of America
relation diplomatic relation
action find
entity Straža pri Dolu
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Straža pri Dolu', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:United_States_of_America property:diplomatic_relation ?f } UNION { resource:Straža_pri_Dolu property:country ?f } } }
[]
designation for an administrative territorial entity
Q155 Q953 Q222 Q17 Q159 Q801 Q403 Q148 Q668 Q37
SYSTEM
Some of them are Brazil, Zambia, Albania, Japan, Russia, Israel, Serbia, People's Republic of China, India, Lithuania
Q805 Q38 Q159 Q222 Q801 Q215 Q155 Q148 Q1011 Q889 Q796 Q17 Q37 Q953 Q668 Q403 Q347 Q414
OR((Q30,P530,c(Q15617994)), (Q2394706,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P530
action find
entity Q2394706
relation P17
type Q15617994
[ANSWERS] have diplomatic relationships with United States of America or are Straža pri Dolu a part of
{'OR': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q2394706', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { { resource:Q30 property:P530 ?f } UNION { resource:Q2394706 property:P17 ?f } } }
Yemen Italy Russia Albania Israel Slovenia Brazil People's Republic of China Cape Verde Afghanistan Iraq Japan Lithuania Zambia India Serbia Liechtenstein Argentina
Brazil, Zambia, Albania, Japan, Russia, Israel, Serbia, People's Republic of China, India and Lithuania have diplomatic relationships with United States of America or are Straža pri Dolu a part of
Brazil Zambia Albania Japan Russia Israel Serbia People's Republic of China India Lithuania
action filter_type
action union
action find
entity United States of America
relation diplomatic relation
action find
entity Straža pri Dolu
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Straža pri Dolu', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:United_States_of_America property:diplomatic_relation ?f } UNION { resource:Straža_pri_Dolu property:country ?f } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q183 Q38
P17
Q15617994
USER
Which administrative territories are located in Italy and Germany ?
AND((c(Q15617994),P17,Q38), (c(Q15617994),P17,Q183))
action filter_type
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q183
relation P17
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P17', 'Q38'], [{'concept': 'Q15617994'}, 'P17', 'Q183']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . ?g property:P17 resource:Q183 . ?g property:P17 resource:Q38 }
Germany Italy
action filter_type
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity Germany
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Germany']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:country resource:Germany . ?g property:country resource:Italy }
[]
designation for an administrative territorial entity
Q562061
SYSTEM
Marktgemeinde
Q562061
AND((c(Q15617994),P17,Q38), (c(Q15617994),P17,Q183))
action filter_type
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q183
relation P17
type Q15617994
[ANSWER] is located in Italy and Germany
{'AND': [[{'concept': 'Q15617994'}, 'P17', 'Q38'], [{'concept': 'Q15617994'}, 'P17', 'Q183']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . ?g property:P17 resource:Q183 . ?g property:P17 resource:Q38 }
Marktgemeinde
Marktgemeinde is located in Italy and Germany
Marktgemeinde
action filter_type
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity Germany
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Germany']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:country resource:Germany . ?g property:country resource:Italy }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q562061 Q4528969 Q183
P17
Q1048835
USER
Is that administrative territory present in Shcherbintsi and Germany ?
(Q562061,P17,Q4528969) (Q562061,P17,Q183)
action is_in
entity Q562061
action intersection
action find_reverse
entity Q4528969
relation P17
action find_reverse
entity Q183
relation P17
['Q562061', 'P17', 'Q4528969'] ['Q562061', 'P17', 'Q183']
ASK WHERE { resource:Q562061 property:P17 resource:Q4528969 . resource:Q562061 property:P17 resource:Q183 }
Marktgemeinde Shcherbintsi Germany
action is_in
entity Marktgemeinde
action intersection
action find_reverse
entity Shcherbintsi
relation country
action find_reverse
entity Germany
relation country
['Marktgemeinde', 'country', 'Shcherbintsi'] ['Marktgemeinde', 'country', 'Germany']
ASK WHERE { resource:Marktgemeinde property:country resource:Shcherbintsi . resource:Marktgemeinde property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q562061,P17,Q4528969) (Q562061,P17,Q183)
action is_in
entity Q562061
action intersection
action find_reverse
entity Q4528969
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q562061', 'P17', 'Q4528969'] ['Q562061', 'P17', 'Q183']
ASK WHERE { resource:Q562061 property:P17 resource:Q4528969 . resource:Q562061 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity Marktgemeinde
action intersection
action find_reverse
entity Shcherbintsi
relation country
action find_reverse
entity Germany
relation country
['Marktgemeinde', 'country', 'Shcherbintsi'] ['Marktgemeinde', 'country', 'Germany']
ASK WHERE { resource:Marktgemeinde property:country resource:Shcherbintsi . resource:Marktgemeinde property:country resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with around 4 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 4
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?b = 4 ) . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?b ) WHERE { ?v property:P530 ?l . ?v rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?v } }
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
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?b = 4 ) . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?b ) WHERE { ?v property:diplomatic_relation ?l . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
149
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 Q858 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
value 4
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?b = 4 ) . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?b ) WHERE { ?v property:P530 ?l . ?v rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?v } }
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 Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
149
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
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?b = 4 ) . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?b ) WHERE { ?v property:diplomatic_relation ?l . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with atleast 93 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?z ) WHERE { ?x rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?x property:P530 ?p } GROUP BY ?x } . FILTER ( ?z >= 93 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?z ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?p } GROUP BY ?x } . FILTER ( ?z >= 93 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?z ) WHERE { ?x rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?x property:P530 ?p } GROUP BY ?x } . FILTER ( ?z >= 93 ) }
Germany Australia
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?z ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?p } GROUP BY ?x } . FILTER ( ?z >= 93 ) }
[]