Simple Question (Direct)
Simple Question
Q524127
P106
Q12737077
USER
What are the professions of Michael Musmanno ?
(Q524127,P106,c(Q12737077))
action filter_type
action find
entity Q524127
relation P106
type Q12737077
['Q524127', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q524127 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Michael Musmanno
action filter_type
action find
entity Michael Musmanno
relation occupation
type occupation
['Michael Musmanno', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Michael_Musmanno property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q16533 Q82955 Q36180
SYSTEM
judge, politician, writer
Q16533 Q82955 Q36180 Q189290
(Q524127,P106,c(Q12737077))
action filter_type
action find
entity Q524127
relation P106
type Q12737077
The professions of Michael Musmanno are the [ANSWERS]
['Q524127', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q524127 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
judge politician writer officer
The professions of Michael Musmanno are the judge, politician and writer
judge politician writer
action filter_type
action find
entity Michael Musmanno
relation occupation
type occupation
['Michael Musmanno', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Michael_Musmanno property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q16533 Q82955 Q36180
P39
Q502895
USER
Which people were appointed for the position of those occupations ?
(c(Q502895),P39,Q16533) (c(Q502895),P39,Q82955) (c(Q502895),P39,Q36180)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q16533'] [{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q36180']
SELECT DISTINCT ?d WHERE { ?d property:P39 ?v . VALUES ( ?v ) { ( resource:Q16533 ) ( resource:Q82955 ) ( resource:Q36180 ) } . ?d rdf:type ontology:Q502895 }
judge politician writer
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'judge'] [{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'writer']
SELECT DISTINCT ?d WHERE { ?d property:position_held ?v . VALUES ( ?v ) { ( resource:judge ) ( resource:politician ) ( resource:writer ) } . ?d rdf:type ontology:common_name }
[]
common name
Q2563 Q4255270 Q239235
SYSTEM
Roman Herzog, Mariano Roca de Togores, 1st Marquis of Molins, Louise Arbour
Q20729887 Q2838761 Q26309250 Q239235 Q25931074 Q20870759 Q1079816 Q17325636 Q17513548 Q1608398 Q20752961 Q19309108 Q16104843 Q11774059 Q21816212 Q12044291 Q12044291 Q12044291 Q2563 Q1716914 Q12022513 Q11878277 Q1203647 Q1281364 Q12025988 Q16484626 Q26098205 Q17113548 Q16617878 Q10395805 Q8018535 Q463824 Q20870783 Q22337798 Q22337798 Q6243592 Q26215129 Q11294693 Q723621 Q20666477 Q163042 Q5945149 Q4255270
(c(Q502895),P39,Q16533) (c(Q502895),P39,Q82955) (c(Q502895),P39,Q36180)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[ANSWERS] were appointed for the position of those occupations
[{'concept': 'Q502895'}, 'P39', 'Q16533'] [{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q36180']
SELECT DISTINCT ?d WHERE { ?d property:P39 ?v . VALUES ( ?v ) { ( resource:Q16533 ) ( resource:Q82955 ) ( resource:Q36180 ) } . ?d rdf:type ontology:Q502895 }
Pierre-Joseph Cavallier Allyre Sirois Matthias Manthei Louise Arbour Halsey R. Wing François Marcellot Christian Gerhard Overbeck Paul Schellhas Athaliah Molokomme Herbert Haller Friedrich Lachmund Siegbert Morscher N. Patrick Crooks Dagmar Lastovecká Fritz Töpffer Pavel Varvařovský Pavel Varvařovský Pavel Varvařovský Roman Herzog Karl Korinek Jan Filip Eliška Wagnerová George Baer Eckart Ratz Josef Fiala Abel Graça Carl Schlettwein Arnvid Vasbotten Włodzimierz Wróbel Álvaro Gurgel de Alencar William Smith Otakar Motejl Jacques-Charles Marcellot Pedro Pereira da Silva Guimarães Pedro Pereira da Silva Guimarães John L. Harding Morteza Azari Henri de Saint-Ignace Paul Nizan Marina Damestoy David Duke José Rocamora Mariano Roca de Togores, 1st Marquis of Molins
Roman Herzog, Mariano Roca de Togores, 1st Marquis of Molins and Louise Arbour were appointed for the position of those occupations
Roman Herzog Mariano Roca de Togores, 1st Marquis of Molins Louise Arbour
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'judge'] [{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'writer']
SELECT DISTINCT ?d WHERE { ?d property:position_held ?v . VALUES ( ?v ) { ( resource:judge ) ( resource:politician ) ( resource:writer ) } . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2563 Q4255270 Q239235
P21
Q290
USER
What are the sex of those people ?
(Q2563,P21,c(Q290)) (Q4255270,P21,c(Q290)) (Q239235,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q2563', 'P21', {'concept': 'Q290'}] ['Q4255270', 'P21', {'concept': 'Q290'}] ['Q239235', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?c property:P21 ?o . ?o rdf:type ontology:Q290 . VALUES ( ?c ) { ( resource:Q20729887 ) ( resource:Q2838761 ) ( resource:Q26309250 ) } }
Roman Herzog Mariano Roca de Togores, 1st Marquis of Molins Louise Arbour
action filter_type
action find
entity prev_answer
relation gender
type sex
['Roman Herzog', 'gender', {'concept': 'sex'}] ['Mariano Roca de Togores, 1st Marquis of Molins', 'gender', {'concept': 'sex'}] ['Louise Arbour', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?c property:gender ?o . ?o rdf:type ontology:sex . VALUES ( ?c ) { ( resource:Pierre-Joseph_Cavallier ) ( resource:Allyre_Sirois ) ( resource:Matthias_Manthei ) } }
[]
sex
Q6581097 Q6581097 Q6581072
SYSTEM
male for 1st, 2nd, female for 3rd
Q6581097 Q6581097 Q6581072
(Q2563,P21,c(Q290)) (Q4255270,P21,c(Q290)) (Q239235,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q2563', 'P21', {'concept': 'Q290'}] ['Q4255270', 'P21', {'concept': 'Q290'}] ['Q239235', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?c property:P21 ?o . ?o rdf:type ontology:Q290 . VALUES ( ?c ) { ( resource:Q20729887 ) ( resource:Q2838761 ) ( resource:Q26309250 ) } }
male male female
The sex of those people are male, male and female
male male female
action filter_type
action find
entity prev_answer
relation gender
type sex
['Roman Herzog', 'gender', {'concept': 'sex'}] ['Mariano Roca de Togores, 1st Marquis of Molins', 'gender', {'concept': 'sex'}] ['Louise Arbour', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?c property:gender ?o . ?o rdf:type ontology:sex . VALUES ( ?c ) { ( resource:Pierre-Joseph_Cavallier ) ( resource:Allyre_Sirois ) ( resource:Matthias_Manthei ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2563
P35
Q1048835
USER
Which political territory is headed by that person ?
(c(Q1048835),P35,Q2563)
action filter_type
action find_reverse
entity Q2563
relation P35
type Q1048835
[{'concept': 'Q1048835'}, 'P35', 'Q2563']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . ?l property:P35 resource:Q2563 }
Roman Herzog
action filter_type
action find_reverse
entity Roman Herzog
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'Roman Herzog']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . ?l property:head_of_state resource:Roman_Herzog }
[]
political territorial entity
Clarification for simple ques.
Q2563
SYSTEM
Did you mean Roman Herzog ?
Q6581097 Q6581097 Q6581072
(c(Q1048835),P35,Q6581097) (c(Q1048835),P35,Q6581097) (c(Q1048835),P35,Q6581072)
[ANSWER]
[{'concept': 'Q1048835'}, 'P35', 'Q6581097'] [{'concept': 'Q1048835'}, 'P35', 'Q6581097'] [{'concept': 'Q1048835'}, 'P35', 'Q6581072']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . ?l property:P35 resource:Q2563 }
male male female
Did you mean Roman Herzog ?
Roman Herzog
[{'concept': 'political territorial entity'}, 'head of state', 'male'] [{'concept': 'political territorial entity'}, 'head of state', 'male'] [{'concept': 'political territorial entity'}, 'head of state', 'female']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . ?l property:head_of_state resource:Roman_Herzog }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1048835),P35,Q2563)
[{'concept': 'Q1048835'}, 'P35', 'Q2563']
[{'concept': 'political territorial entity'}, 'head of state', 'Roman Herzog']
[]
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P35,Q2563)
action filter_type
action find_reverse
entity Q2563
relation P35
type Q1048835
[ANSWER] is headed by that person
[{'concept': 'Q1048835'}, 'P35', 'Q2563']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . ?l property:P35 resource:Q2563 }
Germany
Germany is headed by that person
Germany
action filter_type
action find_reverse
entity Roman Herzog
relation head of state
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of state', 'Roman Herzog']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . ?l property:head_of_state resource:Roman_Herzog }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q739
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with greater number of political territories than Colombia ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?p ) WHERE { ?y property:P530 ?r . ?r rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Q739 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?p > ?e ) }
Colombia
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Colombia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?p ) WHERE { ?y property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Colombia property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p > ?e ) }
[]
designation for an administrative territorial entity political territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with greater number of political territories than Colombia
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?p ) WHERE { ?y property:P530 ?r . ?r rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Q739 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?p > ?e ) }
Brazil Italy
Brazil and Italy have diplomatic relations with greater number of political territories than Colombia
Brazil Italy
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Colombia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?p ) WHERE { ?y property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Colombia property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p > ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q837
P530
Q15617994 Q1048835
USER
And how about Nepal?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q837
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?x ) WHERE { ?p property:P530 ?r . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Q837 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?b ) }
Nepal
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Nepal
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?x ) WHERE { ?p property:diplomatic_relation ?r . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Nepal property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?b ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q837
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?x ) WHERE { ?p property:P530 ?r . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Q837 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?b ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Nepal
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?x ) WHERE { ?p property:diplomatic_relation ?r . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { resource:Nepal property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?b ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2563
P106
Q28640 Q12737077
USER
How many professions and occupations have Roman Herzog as his/her as a career ?
(Q2563,P106,c(Q28640)) (Q2563,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q2563
relation P106
type Q28640
action filter_type
action find
entity Q2563
relation P106
type Q12737077
['Q2563', 'P106', {'concept': 'Q28640'}] ['Q2563', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q28640 ) ( ontology:Q12737077 ) } }
Roman Herzog
action count
action union
action filter_type
action find
entity Roman Herzog
relation occupation
type profession
action filter_type
action find
entity Roman Herzog
relation occupation
type occupation
['Roman Herzog', 'occupation', {'concept': 'profession'}] ['Roman Herzog', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:profession ) ( ontology:occupation ) } }
[]
profession occupation
SYSTEM
1 professions and 3 occupations
Q16533 Q185351 Q82955 Q1622272
(Q2563,P106,c(Q28640)) (Q2563,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q2563
relation P106
type Q28640
action filter_type
action find
entity Q2563
relation P106
type Q12737077
[ANSWER]
['Q2563', 'P106', {'concept': 'Q28640'}] ['Q2563', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q28640 ) ( ontology:Q12737077 ) } }
judge jurist politician university teacher
1 professions and 3 occupations
action count
action union
action filter_type
action find
entity Roman Herzog
relation occupation
type profession
action filter_type
action find
entity Roman Herzog
relation occupation
type occupation
['Roman Herzog', 'occupation', {'concept': 'profession'}] ['Roman Herzog', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:profession ) ( ontology:occupation ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q736
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with more number of administrative territories than Ecuador ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q736
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?e ) WHERE { ?m property:P530 ?j . ?m rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Q736 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?g ) }
Ecuador
action greater
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 Ecuador
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?e ) WHERE { ?m property:diplomatic_relation ?j . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Ecuador property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?g ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q419 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q733 Q230 Q27 Q28 Q843 Q184 Q228 Q227 Q225 Q222 Q96 Q347 Q17 Q902 Q298 Q114 Q212 Q213 Q218 Q916 Q79 Q77 Q858 Q948 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q736
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with more number of administrative territories than Ecuador
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?e ) WHERE { ?m property:P530 ?j . ?m rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Q736 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?g ) }
Israel Yemen Peru India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Paraguay Georgia Ireland Hungary Pakistan Belarus Andorra Azerbaijan Bosnia and Herzegovina Albania Mexico Liechtenstein Japan Bangladesh Chile Kenya Ukraine Czech Republic Romania Angola Egypt Uruguay Syria Tunisia Libya Cape Verde Spain Zambia
Italy, Brazil and United States of America are known to have diplomatic connections with more number of administrative territories than Ecuador
Italy Brazil United States of America
action greater
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 Ecuador
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?e ) WHERE { ?m property:diplomatic_relation ?j . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Ecuador property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q858
P530
Q15617994 Q15617994
USER
And also tell me about Syria?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q858
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?c ) WHERE { ?u property:P530 ?b . ?u rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { resource:Q858 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?c > ?l ) }
Syria
action greater
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 Syria
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 ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?c ) WHERE { ?u property:diplomatic_relation ?b . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { resource:Syria property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c > ?l ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q159 Q155 Q30 Q929 Q38 Q230 Q184 Q114 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q858
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?c ) WHERE { ?u property:P530 ?b . ?u rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { resource:Q858 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?c > ?l ) }
Israel Yemen France Russia Brazil United States of America Central African Republic Italy Georgia Belarus Kenya Zambia
Italy Brazil United States of America
action greater
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 Syria
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 ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?c ) WHERE { ?u property:diplomatic_relation ?b . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { resource:Syria property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c > ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q236
P530
Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with approximately the same number of administrative territories as Montenegro ?
(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 Q236
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?f ) WHERE { ?b property:P530 ?v . ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?f = ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { resource:Q236 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } }
Montenegro
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 Montenegro
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 ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?f ) WHERE { ?b property:diplomatic_relation ?v . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?f = ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { resource:Montenegro property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
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 Q236
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?f ) WHERE { ?b property:P530 ?v . ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?f = ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { resource:Q236 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } }
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 Montenegro
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 ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?f ) WHERE { ?b property:diplomatic_relation ?v . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?f = ?z ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { resource:Montenegro property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1045
P530
Q15617994 Q15617994
USER
And how about Somalia?
(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 Q1045
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { resource:Q1045 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?b = ?t ) . { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?c property:P530 ?d . ?c rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?c } }
Somalia
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 Somalia
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 ( ?c ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { resource:Somalia property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b = ?t ) . { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?c property:diplomatic_relation ?d . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } }
[]
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 Q1045
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { resource:Q1045 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?b = ?t ) . { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?c property:P530 ?d . ?c rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?c } }
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 Somalia
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 ( ?c ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { resource:Somalia property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b = ?t ) . { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?c property:diplomatic_relation ?d . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6793737 Q858
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Syria and do Mauritania–United States relations belong to ?
AND((Q858,P530,c(Q15617994)), (Q6793737,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q858
relation P530
action find
entity Q6793737
relation P17
type Q15617994
{'AND': [['Q858', 'P530', {'concept': 'Q15617994'}], ['Q6793737', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { resource:Q858 property:P530 ?w . resource:Q6793737 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Mauritania–United States relations Syria
action filter_type
action intersection
action find
entity Syria
relation diplomatic relation
action find
entity Mauritania–United States relations
relation country
type designation for an administrative territorial entity
{'AND': [['Syria', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Mauritania–United States relations', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { resource:Syria property:diplomatic_relation ?w . resource:Mauritania–United_States_relations property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q858,P530,c(Q15617994)), (Q6793737,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q858
relation P530
action find
entity Q6793737
relation P17
type Q15617994
[ANSWER] have diplomatic relationships with Syria and do Mauritania–United States relations belong to
{'AND': [['Q858', 'P530', {'concept': 'Q15617994'}], ['Q6793737', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { resource:Q858 property:P530 ?w . resource:Q6793737 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
United States of America
United States of America have diplomatic relationships with Syria and do Mauritania–United States relations belong to
United States of America
action filter_type
action intersection
action find
entity Syria
relation diplomatic relation
action find
entity Mauritania–United States relations
relation country
type designation for an administrative territorial entity
{'AND': [['Syria', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Mauritania–United States relations', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { resource:Syria property:diplomatic_relation ?w . resource:Mauritania–United_States_relations property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]