Simple Question (Direct)
Simple Question
Q3398247
P106
Q12737077
USER
Which occupations have David "Stringbean" Akeman as his/her 's career ?
(Q3398247,P106,c(Q12737077))
action filter_type
action find
entity Q3398247
relation P106
type Q12737077
['Q3398247', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3398247 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
David "Stringbean" Akeman
action filter_type
action find
entity David "Stringbean" Akeman
relation occupation
type occupation
['David "Stringbean" Akeman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:David_"Stringbean"_Akeman property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q753110 Q9648008
SYSTEM
songwriter, banjoist
Q753110 Q9648008
(Q3398247,P106,c(Q12737077))
action filter_type
action find
entity Q3398247
relation P106
type Q12737077
As [ANSWERS] have David "Stringbean" Akeman as his/her 's career
['Q3398247', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3398247 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
songwriter banjoist
As songwriter and banjoist have David "Stringbean" Akeman as his/her 's career
songwriter banjoist
action filter_type
action find
entity David "Stringbean" Akeman
relation occupation
type occupation
['David "Stringbean" Akeman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:David_"Stringbean"_Akeman property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3398247
P27
Q15617994
USER
Which administrative territory is David "Stringbean" Akeman a civilian of ?
(Q3398247,P27,c(Q15617994))
action filter_type
action find
entity Q3398247
relation P27
type Q15617994
['Q3398247', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q3398247 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
David "Stringbean" Akeman
action filter_type
action find
entity David "Stringbean" Akeman
relation country of citizenship
type designation for an administrative territorial entity
['David "Stringbean" Akeman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:David_"Stringbean"_Akeman property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q3398247,P27,c(Q15617994))
action filter_type
action find
entity Q3398247
relation P27
type Q15617994
[ANSWER] is David "Stringbean" Akeman a civilian of
['Q3398247', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q3398247 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
United States of America
United States of America is David "Stringbean" Akeman a civilian of
United States of America
action filter_type
action find
entity David "Stringbean" Akeman
relation country of citizenship
type designation for an administrative territorial entity
['David "Stringbean" Akeman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:David_"Stringbean"_Akeman property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5930664
Q15617994
USER
And what about Jesús Sepúlveda Recio?
(Q5930664,P27,c(Q15617994))
action filter_type
action find
entity Q5930664
relation P27
type Q15617994
['Q5930664', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q5930664 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Jesús Sepúlveda Recio
action filter_type
action find
entity Jesús Sepúlveda Recio
relation country of citizenship
type designation for an administrative territorial entity
['Jesús Sepúlveda Recio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Jesús_Sepúlveda_Recio property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q5930664,P27,c(Q15617994))
action filter_type
action find
entity Q5930664
relation P27
type Q15617994
[ANSWER]
['Q5930664', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q5930664 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Spain
Spain
action filter_type
action find
entity Jesús Sepúlveda Recio
relation country of citizenship
type designation for an administrative territorial entity
['Jesús Sepúlveda Recio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Jesús_Sepúlveda_Recio property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q29
P159
Q874405 Q1346006
USER
How many social groups and international sport governing bodies have HQ at Spain ?
(c(Q874405),P159,Q29) (c(Q1346006),P159,Q29)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P159
type Q874405
action filter_type
action find_reverse
entity Q29
relation P159
type Q1346006
[{'concept': 'Q874405'}, 'P159', 'Q29'] [{'concept': 'Q1346006'}, 'P159', 'Q29']
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { { ?w rdf:type ontology:Q874405 . ?w property:P159 resource:Q29 } UNION { ?w property:P159 resource:Q29 . ?w rdf:type ontology:Q1346006 } }
Spain
action count
action union
action filter_type
action find_reverse
entity Spain
relation headquarters location
type social group
action filter_type
action find_reverse
entity Spain
relation headquarters location
type international sport governing body
[{'concept': 'social group'}, 'headquarters location', 'Spain'] [{'concept': 'international sport governing body'}, 'headquarters location', 'Spain']
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { { ?w rdf:type ontology:social_group . ?w property:headquarters_location resource:Spain } UNION { ?w property:headquarters_location resource:Spain . ?w rdf:type ontology:international_sport_governing_body } }
[]
social group international sport governing body
SYSTEM
3 social groups and 1 international sport governing bodies
Q5795973 Q1950128 Q3286916 Q1480956
(c(Q874405),P159,Q29) (c(Q1346006),P159,Q29)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P159
type Q874405
action filter_type
action find_reverse
entity Q29
relation P159
type Q1346006
[ANSWER]
[{'concept': 'Q874405'}, 'P159', 'Q29'] [{'concept': 'Q1346006'}, 'P159', 'Q29']
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { { ?w rdf:type ontology:Q874405 . ?w property:P159 resource:Q29 } UNION { ?w property:P159 resource:Q29 . ?w rdf:type ontology:Q1346006 } }
Caritas Spain Libera! Animal Equality World Karate Federation
3 social groups and 1 international sport governing bodies
action count
action union
action filter_type
action find_reverse
entity Spain
relation headquarters location
type social group
action filter_type
action find_reverse
entity Spain
relation headquarters location
type international sport governing body
[{'concept': 'social group'}, 'headquarters location', 'Spain'] [{'concept': 'international sport governing body'}, 'headquarters location', 'Spain']
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { { ?w rdf:type ontology:social_group . ?w property:headquarters_location resource:Spain } UNION { ?w property:headquarters_location resource:Spain . ?w rdf:type ontology:international_sport_governing_body } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with approximately 15 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 15
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?u ) WHERE { ?y property:P530 ?i . ?y rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?u = 15 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?u ) WHERE { ?y property:diplomatic_relation ?i . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?u = 15 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q159 Q142
SYSTEM
United States of America, Russia, France
Q801 Q805 Q668 Q142 Q145 Q148 Q711 Q403 Q159 Q43 Q884 Q30 Q929 Q225 Q347 Q17 Q114 Q212 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 15
[ANSWERS] have tactful political relations with approximately 15 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?u ) WHERE { ?y property:P530 ?i . ?y rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?u = 15 ) }
Israel Yemen India France United Kingdom People's Republic of China Mongolia Serbia Russia Turkey South Korea United States of America Central African Republic Bosnia and Herzegovina Liechtenstein Japan Kenya Ukraine Syria Cape Verde Zambia
United States of America, Russia and France have tactful political relations with approximately 15 administrative territories
United States of America Russia France
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?u ) WHERE { ?y property:diplomatic_relation ?i . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?u = 15 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16837237
P495
Q2088357
USER
Did Folkodia originate in those administrative territories ?
(Q16837237,P495,Q30) (Q16837237,P495,Q159) (Q16837237,P495,Q142)
action is_in
entity prev_answer
action find
entity Q16837237
relation P495
['Q16837237', 'P495', 'Q30'] ['Q16837237', 'P495', 'Q159'] ['Q16837237', 'P495', 'Q142']
ASK WHERE { resource:Q16837237 property:P495 ?i . VALUES ( ?i ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q668 ) } }
Folkodia
action is_in
entity prev_answer
action find
entity Folkodia
relation country of origin
['Folkodia', 'country of origin', 'United States of America'] ['Folkodia', 'country of origin', 'Russia'] ['Folkodia', 'country of origin', 'France']
ASK WHERE { resource:Folkodia property:country_of_origin ?i . VALUES ( ?i ) { ( resource:Israel ) ( resource:Yemen ) ( resource:India ) } }
[]
musical ensemble
SYSTEM
YES
(Q16837237,P495,Q30) (Q16837237,P495,Q159) (Q16837237,P495,Q142)
action is_in
entity prev_answer
action find
entity Q16837237
relation P495
[ANSWER]
['Q16837237', 'P495', 'Q30'] ['Q16837237', 'P495', 'Q159'] ['Q16837237', 'P495', 'Q142']
ASK WHERE { resource:Q16837237 property:P495 ?i . VALUES ( ?i ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q668 ) } }
Yes
action is_in
entity prev_answer
action find
entity Folkodia
relation country of origin
['Folkodia', 'country of origin', 'United States of America'] ['Folkodia', 'country of origin', 'Russia'] ['Folkodia', 'country of origin', 'France']
ASK WHERE { resource:Folkodia property:country_of_origin ?i . VALUES ( ?i ) { ( resource:Israel ) ( resource:Yemen ) ( resource:India ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q408
P530
Q1048835 Q15617994
USER
How many political territories have a diplomatic relationship with around the same number of administrative territories as Australia ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Q408 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?t = ?m ) . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?t ) WHERE { ?o property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } }
Australia
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Australia property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?t = ?m ) . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?t ) WHERE { ?o property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Q408 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?t = ?m ) . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?t ) WHERE { ?o property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Australia property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?t = ?m ) . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?t ) WHERE { ?o property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q691
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with approximately the same number of administrative territories as Papua New Guinea ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?k ) WHERE { ?n property:P530 ?p . ?n rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q691 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?k = ?f ) }
Papua New Guinea
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?k ) WHERE { ?n property:diplomatic_relation ?p . ?n rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?k = ?f ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWERS] have tactful political relations with approximately the same number of administrative territories as Papua New Guinea
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?k ) WHERE { ?n property:P530 ?p . ?n rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q691 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?k = ?f ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have tactful political relations with approximately the same number of administrative territories as Papua New Guinea
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?k ) WHERE { ?n property:diplomatic_relation ?p . ?n rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?k = ?f ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with min number of political territories ?
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?p ) { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } GROUP BY ?x } } . { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?f ) WHERE { ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 . ?j property:P530 ?h } GROUP BY ?h } . FILTER ( ?f = ?p ) }
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?p ) { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?x } } . { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?f ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation ?h } GROUP BY ?h } . FILTER ( ?f = ?p ) }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic relations with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?p ) { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } GROUP BY ?x } } . { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?f ) WHERE { ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 . ?j property:P530 ?h } GROUP BY ?h } . FILTER ( ?f = ?p ) }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen, Syria and Oman have diplomatic relations with min number of political territories
Yemen Syria Oman
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?p ) { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?x } } . { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?f ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation ?h } GROUP BY ?h } . FILTER ( ?f = ?p ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q805 Q858 Q842
P6
Q502895
USER
Which people are the head of government of Yemen, Syria and Oman ?
(Q805,P6,c(Q502895)) (Q858,P6,c(Q502895)) (Q842,P6,c(Q502895))
action union
action filter_type
action find
entity Q805
relation P6
type Q502895
action filter_type
action find
entity Q858
relation P6
type Q502895
action filter_type
action find
entity Q842
relation P6
type Q502895
['Q805', 'P6', {'concept': 'Q502895'}] ['Q858', 'P6', {'concept': 'Q502895'}] ['Q842', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { resource:Q858 property:P6 ?t . ?t rdf:type ontology:Q502895 } UNION { resource:Q805 property:P6 ?t . ?t rdf:type ontology:Q502895 } }
Yemen Syria Oman
action union
action filter_type
action find
entity Yemen
relation head of government
type common name
action filter_type
action find
entity Syria
relation head of government
type common name
action filter_type
action find
entity Oman
relation head of government
type common name
['Yemen', 'head of government', {'concept': 'common name'}] ['Syria', 'head of government', {'concept': 'common name'}] ['Oman', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { resource:Syria property:head_of_government ?t . ?t rdf:type ontology:common_name } UNION { resource:Yemen property:head_of_government ?t . ?t rdf:type ontology:common_name } }
[]
common name
Q57331 Q6399485 Q2622743
SYSTEM
Qaboos bin Said al Said, Khalid Bahah, Abdul Aziz Abdul Ghani
Q12240557 Q57905 Q6399485 Q20385886 Q362268 Q5434768 Q4119595 Q1322893 Q307338 Q2622743 Q713915 Q57331
(Q805,P6,c(Q502895)) (Q858,P6,c(Q502895)) (Q842,P6,c(Q502895))
action union
action filter_type
action find
entity Q805
relation P6
type Q502895
action filter_type
action find
entity Q858
relation P6
type Q502895
action filter_type
action find
entity Q842
relation P6
type Q502895
[ANSWERS] are the head of government of Yemen, Syria and Oman
['Q805', 'P6', {'concept': 'Q502895'}] ['Q858', 'P6', {'concept': 'Q502895'}] ['Q842', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { resource:Q858 property:P6 ?t . ?t rdf:type ontology:Q502895 } UNION { resource:Q805 property:P6 ?t . ?t rdf:type ontology:Q502895 } }
Muhammad Said al-Attar Mohammed Basindawa Khalid Bahah Ahmed Obaid Bin-Dagher Ali Muhammad Mujawar Faraj Said Bin Ghanem Abd Al-Karim Al-Iryani Haidar Abu Bakr al-Attas Abdul Qadir Bajamal Abdul Aziz Abdul Ghani Wael Nader Al-Halqi Qaboos bin Said al Said
Qaboos bin Said al Said, Khalid Bahah and Abdul Aziz Abdul Ghani are the head of government of Yemen, Syria and Oman
Qaboos bin Said al Said Khalid Bahah Abdul Aziz Abdul Ghani
action union
action filter_type
action find
entity Yemen
relation head of government
type common name
action filter_type
action find
entity Syria
relation head of government
type common name
action filter_type
action find
entity Oman
relation head of government
type common name
['Yemen', 'head of government', {'concept': 'common name'}] ['Syria', 'head of government', {'concept': 'common name'}] ['Oman', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { resource:Syria property:head_of_government ?t . ?t rdf:type ontology:common_name } UNION { resource:Yemen property:head_of_government ?t . ?t rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6399485
P607
Q350604
USER
Which armed conflict did that person take part in ?
(Q6399485,P607,c(Q350604))
action filter_type
action find
entity Q6399485
relation P607
type Q350604
['Q6399485', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q350604 . resource:Q6399485 property:P607 ?v }
Khalid Bahah
action filter_type
action find
entity Khalid Bahah
relation conflict
type armed conflict
['Khalid Bahah', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:armed_conflict . resource:Khalid_Bahah property:conflict ?v }
[]
armed conflict
Clarification for simple ques.
Q6399485
SYSTEM
Did you mean Khalid Bahah ?
Q57331 Q6399485 Q2622743
(Q57331,P607,c(Q350604)) (Q6399485,P607,c(Q350604)) (Q2622743,P607,c(Q350604))
[ANSWER]
['Q57331', 'P607', {'concept': 'Q350604'}] ['Q6399485', 'P607', {'concept': 'Q350604'}] ['Q2622743', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q350604 . resource:Q6399485 property:P607 ?v }
Qaboos bin Said al Said Khalid Bahah Abdul Aziz Abdul Ghani
Did you mean Khalid Bahah ?
Khalid Bahah
['Qaboos bin Said al Said', 'conflict', {'concept': 'armed conflict'}] ['Khalid Bahah', 'conflict', {'concept': 'armed conflict'}] ['Abdul Aziz Abdul Ghani', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:armed_conflict . resource:Khalid_Bahah property:conflict ?v }
[]
Simple Question (Coreferenced)
USER
Yes
(Q6399485,P607,c(Q350604))
['Q6399485', 'P607', {'concept': 'Q350604'}]
['Khalid Bahah', 'conflict', {'concept': 'armed conflict'}]
[]
Q19686631
SYSTEM
Yemeni Civil War
Q19686631
(Q6399485,P607,c(Q350604))
action filter_type
action find
entity Q6399485
relation P607
type Q350604
Part that person took in the [ANSWER]
['Q6399485', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q350604 . resource:Q6399485 property:P607 ?v }
Yemeni Civil War
Part that person took in the Yemeni Civil War
Yemeni Civil War
action filter_type
action find
entity Khalid Bahah
relation conflict
type armed conflict
['Khalid Bahah', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:armed_conflict . resource:Khalid_Bahah property:conflict ?v }
[]