Simple Question (Direct)
Simple Question
Q19577832
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Ali Shiham ?
(Q19577832,P27,c(Q15617994))
action filter_type
action find
entity Q19577832
relation P27
type Q15617994
['Q19577832', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q19577832 property:P27 ?g }
Ali Shiham
action filter_type
action find
entity Ali Shiham
relation country of citizenship
type designation for an administrative territorial entity
['Ali Shiham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ali_Shiham property:country_of_citizenship ?g }
[]
designation for an administrative territorial entity
Q826
SYSTEM
Maldives
Q826
(Q19577832,P27,c(Q15617994))
action filter_type
action find
entity Q19577832
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Ali Shiham
['Q19577832', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q19577832 property:P27 ?g }
Maldives
Maldives is the country of citizenship of Ali Shiham
Maldives
action filter_type
action find
entity Ali Shiham
relation country of citizenship
type designation for an administrative territorial entity
['Ali Shiham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ali_Shiham property:country_of_citizenship ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q826
P20
Q502895
USER
Who died in that administrative territory ?
(c(Q502895),P20,Q826)
action filter_type
action find_reverse
entity Q826
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q826']
SELECT DISTINCT ?z WHERE { ?z property:P20 resource:Q826 . ?z rdf:type ontology:Q502895 }
Maldives
action filter_type
action find_reverse
entity Maldives
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Maldives']
SELECT DISTINCT ?z WHERE { ?z property:place_of_death resource:Maldives . ?z rdf:type ontology:common_name }
[]
common name
Q2863164 Q6932757 Q1581860
SYSTEM
Arnaud Lyon-Caen, Muhammad Thakurufaanu Al Auzam, Hans Pundt
Q2863164 Q6932757 Q1581860
(c(Q502895),P20,Q826)
action filter_type
action find_reverse
entity Q826
relation P20
type Q502895
[ANSWERS] died in that administrative territory
[{'concept': 'Q502895'}, 'P20', 'Q826']
SELECT DISTINCT ?z WHERE { ?z property:P20 resource:Q826 . ?z rdf:type ontology:Q502895 }
Arnaud Lyon-Caen Muhammad Thakurufaanu Al Auzam Hans Pundt
Arnaud Lyon-Caen, Muhammad Thakurufaanu Al Auzam and Hans Pundt died in that administrative territory
Arnaud Lyon-Caen Muhammad Thakurufaanu Al Auzam Hans Pundt
action filter_type
action find_reverse
entity Maldives
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Maldives']
SELECT DISTINCT ?z WHERE { ?z property:place_of_death resource:Maldives . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atleast 4107 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 4107
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?h ) WHERE { ?i rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?i } GROUP BY ?i } . FILTER ( ?h >= 4107 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 4107
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?h ) WHERE { ?i rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?i } GROUP BY ?i } . FILTER ( ?h >= 4107 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 4107
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?h ) WHERE { ?i rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?i } GROUP BY ?i } . FILTER ( ?h >= 4107 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 4107
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?h ) WHERE { ?i rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?i } GROUP BY ?i } . FILTER ( ?h >= 4107 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826
P127
Q811430
USER
Which construction belongs to Maldives ?
(c(Q811430),P127,Q826)
action filter_type
action find_reverse
entity Q826
relation P127
type Q811430
[{'concept': 'Q811430'}, 'P127', 'Q826']
SELECT DISTINCT ?n WHERE { ?n property:P127 resource:Q826 . ?n rdf:type ontology:Q811430 }
Maldives
action filter_type
action find_reverse
entity Maldives
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Maldives']
SELECT DISTINCT ?n WHERE { ?n property:owned_by resource:Maldives . ?n rdf:type ontology:construction }
[]
construction
Q7777728
SYSTEM
Theemuge
Q7777728
(c(Q811430),P127,Q826)
action filter_type
action find_reverse
entity Q826
relation P127
type Q811430
[ANSWER] belongs to Maldives
[{'concept': 'Q811430'}, 'P127', 'Q826']
SELECT DISTINCT ?n WHERE { ?n property:P127 resource:Q826 . ?n rdf:type ontology:Q811430 }
Theemuge
Theemuge belongs to Maldives
Theemuge
action filter_type
action find_reverse
entity Maldives
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Maldives']
SELECT DISTINCT ?n WHERE { ?n property:owned_by resource:Maldives . ?n rdf:type ontology:construction }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826
P1532
Q502895
USER
Who represents Maldives ?
(c(Q502895),P1532,Q826)
action filter_type
action find_reverse
entity Q826
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q826']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P1532 resource:Q826 }
Maldives
action filter_type
action find_reverse
entity Maldives
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Maldives']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:country_for_sport resource:Maldives }
[]
common name
Q21858397
SYSTEM
Naseer Ismail
Q21858397
(c(Q502895),P1532,Q826)
action filter_type
action find_reverse
entity Q826
relation P1532
type Q502895
[ANSWER] represents Maldives
[{'concept': 'Q502895'}, 'P1532', 'Q826']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P1532 resource:Q826 }
Naseer Ismail
Naseer Ismail represents Maldives
Naseer Ismail
action filter_type
action find_reverse
entity Maldives
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Maldives']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:country_for_sport resource:Maldives }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21858397
P641
Q212434
USER
Which Olympic sport was that person a part of ?
(Q21858397,P641,c(Q212434))
action filter_type
action find
entity Q21858397
relation P641
type Q212434
['Q21858397', 'P641', {'concept': 'Q212434'}]
SELECT DISTINCT ?r WHERE { resource:Q21858397 property:P641 ?r . ?r rdf:type ontology:Q212434 }
Naseer Ismail
action filter_type
action find
entity Naseer Ismail
relation sport
type Olympic sport
['Naseer Ismail', 'sport', {'concept': 'Olympic sport'}]
SELECT DISTINCT ?r WHERE { resource:Naseer_Ismail property:sport ?r . ?r rdf:type ontology:Olympic_sport }
[]
Olympic sport
Q3312129
SYSTEM
track and field
Q3312129
(Q21858397,P641,c(Q212434))
action filter_type
action find
entity Q21858397
relation P641
type Q212434
[ANSWER] was that person a part of
['Q21858397', 'P641', {'concept': 'Q212434'}]
SELECT DISTINCT ?r WHERE { resource:Q21858397 property:P641 ?r . ?r rdf:type ontology:Q212434 }
track and field
Track and field was that person a part of
track and field
action filter_type
action find
entity Naseer Ismail
relation sport
type Olympic sport
['Naseer Ismail', 'sport', {'concept': 'Olympic sport'}]
SELECT DISTINCT ?r WHERE { resource:Naseer_Ismail property:sport ?r . ?r rdf:type ontology:Olympic_sport }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q826
P19 P21
Q502895
USER
Which people have place of birth as Maldives and have the gender as male ?
AND((c(Q502895),P19,Q826), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q826
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q826'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?s WHERE { ?s property:P19 resource:Q826 . ?s property:P21 resource:Q6581097 . ?s rdf:type ontology:Q502895 }
male Maldives
action filter_type
action intersection
action find_reverse
entity Maldives
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Maldives'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?s WHERE { ?s property:place_of_birth resource:Maldives . ?s property:gender resource:male . ?s rdf:type ontology:common_name }
[]
common name
Q22583602 Q4701603 Q6794063 Q19518468 Q4665517 Q7636830 Q10553367 Q17146263 Q4695978 Q16218696
SYSTEM
Some of them are Adam Lareef, Akram Abdul Ghanee, Mausoom Abdul Gafoor, Ahmed Abdulla (Maldivian footballer), Abdul Majeed Didi, Sulthan Abdul Muhsin, Ahmed Zaad, Mohamed Zilaal, Ahmed Rasheed, Ahmed Niyaz
Q5679540 Q1255051 Q4701603 Q4695809 Q5984572 Q4805884 Q19979405 Q4808318 Q6908527 Q19518468 Q18810073 Q20641192 Q4695955 Q16239786 Q19958135 Q22004831 Q19957886 Q4695978 Q16218696 Q4807264 Q10553367 Q17146263 Q6891183 Q7636830 Q5949557 Q21066446 Q22583602 Q4665517 Q6794063 Q6084694 Q16232485
AND((c(Q502895),P19,Q826), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q826
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have place of birth as Maldives and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q826'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?s WHERE { ?s property:P19 resource:Q826 . ?s property:P21 resource:Q6581097 . ?s rdf:type ontology:Q502895 }
Hassan Adhuham Ahmed Shaheed Akram Abdul Ghanee Ahmed Falah Ibrahim Hussein Zaki Ashraf Luthfy Mohamed Nihan Nasir Assad Abdul Ghanee Moosa Yaamin Ahmed Abdulla (Maldivian footballer) Ali Nashid Hussain Niyaz Mohamed Ahmed Nashid Ibrahim Labaan Shareef Mohamed Hussain Naiz Hassan Anwar Abdul Ghanee Ahmed Rasheed Ahmed Niyaz Aslam Abdul Raheem Ahmed Zaad Mohamed Zilaal Mohamed Faisal Sulthan Abdul Muhsin Hussain Rasheed Ahmed Ismail Mahfooz Adam Lareef Abdul Majeed Didi Mausoom Abdul Gafoor Ismail Easa Mohammad Umair
Adam Lareef, Akram Abdul Ghanee, Mausoom Abdul Gafoor, Ahmed Abdulla (Maldivian footballer), Abdul Majeed Didi, Sulthan Abdul Muhsin, Ahmed Zaad, Mohamed Zilaal, Ahmed Rasheed and Ahmed Niyaz have place of birth as Maldives and have the gender as male
Adam Lareef Akram Abdul Ghanee Mausoom Abdul Gafoor Ahmed Abdulla (Maldivian footballer) Abdul Majeed Didi Sulthan Abdul Muhsin Ahmed Zaad Mohamed Zilaal Ahmed Rasheed Ahmed Niyaz
action filter_type
action intersection
action find_reverse
entity Maldives
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Maldives'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?s WHERE { ?s property:place_of_birth resource:Maldives . ?s property:gender resource:male . ?s rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3972505 Q6932757
P20
Q15617994
USER
Which administrative territories did Muhammad Thakurufaanu Al Auzam or Stefano Gaggero expire ?
OR((Q6932757,P20,c(Q15617994)), (Q3972505,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q6932757
relation P20
action find
entity Q3972505
relation P20
type Q15617994
{'OR': [['Q6932757', 'P20', {'concept': 'Q15617994'}], ['Q3972505', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q6932757 property:P20 ?e } UNION { resource:Q3972505 property:P20 ?e } } . ?e rdf:type ontology:Q15617994 }
Stefano Gaggero Muhammad Thakurufaanu Al Auzam
action filter_type
action union
action find
entity Muhammad Thakurufaanu Al Auzam
relation place of death
action find
entity Stefano Gaggero
relation place of death
type designation for an administrative territorial entity
{'OR': [['Muhammad Thakurufaanu Al Auzam', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Stefano Gaggero', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Muhammad_Thakurufaanu_Al_Auzam property:place_of_death ?e } UNION { resource:Stefano_Gaggero property:place_of_death ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q265257 Q826
SYSTEM
Arenzano, Maldives
Q265257 Q826
OR((Q6932757,P20,c(Q15617994)), (Q3972505,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q6932757
relation P20
action find
entity Q3972505
relation P20
type Q15617994
Muhammad Thakurufaanu Al Auzam or Stefano Gaggero expired [ANSWERS]
{'OR': [['Q6932757', 'P20', {'concept': 'Q15617994'}], ['Q3972505', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q6932757 property:P20 ?e } UNION { resource:Q3972505 property:P20 ?e } } . ?e rdf:type ontology:Q15617994 }
Arenzano Maldives
Muhammad Thakurufaanu Al Auzam or Stefano Gaggero expired Arenzano and Maldives
Arenzano Maldives
action filter_type
action union
action find
entity Muhammad Thakurufaanu Al Auzam
relation place of death
action find
entity Stefano Gaggero
relation place of death
type designation for an administrative territorial entity
{'OR': [['Muhammad Thakurufaanu Al Auzam', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Stefano Gaggero', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Muhammad_Thakurufaanu_Al_Auzam property:place_of_death ?e } UNION { resource:Stefano_Gaggero property:place_of_death ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q92614 Q21858397
P27 P1532
Q15617994
USER
Which administrative territories do Naseer Ismail represent or do Douglas Engelbart belong to ?
OR((Q21858397,P1532,c(Q15617994)), (Q92614,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q21858397
relation P1532
action find
entity Q92614
relation P27
type Q15617994
{'OR': [['Q21858397', 'P1532', {'concept': 'Q15617994'}], ['Q92614', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q21858397 property:P1532 ?w } UNION { resource:Q92614 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Douglas Engelbart Naseer Ismail
action filter_type
action union
action find
entity Naseer Ismail
relation country for sport
action find
entity Douglas Engelbart
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Naseer Ismail', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Douglas Engelbart', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Naseer_Ismail property:country_for_sport ?w } UNION { resource:Douglas_Engelbart property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q826 Q30
SYSTEM
Maldives, United States of America
Q826 Q30
OR((Q21858397,P1532,c(Q15617994)), (Q92614,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q21858397
relation P1532
action find
entity Q92614
relation P27
type Q15617994
Naseer Ismail or Douglas Engelbart represent the [ANSWERS]
{'OR': [['Q21858397', 'P1532', {'concept': 'Q15617994'}], ['Q92614', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q21858397 property:P1532 ?w } UNION { resource:Q92614 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Maldives United States of America
Naseer Ismail or Douglas Engelbart represent the Maldives and United States of America
Maldives United States of America
action filter_type
action union
action find
entity Naseer Ismail
relation country for sport
action find
entity Douglas Engelbart
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Naseer Ismail', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Douglas Engelbart', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Naseer_Ismail property:country_for_sport ?w } UNION { resource:Douglas_Engelbart property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with around 73 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 73
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?r ) WHERE { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?r = 73 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 73
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?r ) WHERE { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?r = 73 ) }
[]
designation for an administrative territorial entity political territorial entity
Q408 Q16
SYSTEM
Australia, Canada
Q408 Q16
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 73
[ANSWERS] have diplomatic relations with around 73 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?r ) WHERE { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?r = 73 ) }
Australia Canada
Australia and Canada have diplomatic relations with around 73 administrative territories
Australia Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 73
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?r ) WHERE { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?r = 73 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5982072
P27
Q502895
USER
Are Ian Lloyd a native of those political territories ?
(Q5982072,P27,Q408) (Q5982072,P27,Q16)
action is_in
entity prev_answer
action find
entity Q5982072
relation P27
['Q5982072', 'P27', 'Q408'] ['Q5982072', 'P27', 'Q16']
ASK WHERE { resource:Q5982072 property:P27 ?h . VALUES ( ?h ) { ( resource:Q408 ) ( resource:Q16 ) } }
Ian Lloyd
action is_in
entity prev_answer
action find
entity Ian Lloyd
relation country of citizenship
['Ian Lloyd', 'country of citizenship', 'Australia'] ['Ian Lloyd', 'country of citizenship', 'Canada']
ASK WHERE { resource:Ian_Lloyd property:country_of_citizenship ?h . VALUES ( ?h ) { ( resource:Australia ) ( resource:Canada ) } }
[]
common name
SYSTEM
YES
(Q5982072,P27,Q408) (Q5982072,P27,Q16)
action is_in
entity prev_answer
action find
entity Q5982072
relation P27
[ANSWER]
['Q5982072', 'P27', 'Q408'] ['Q5982072', 'P27', 'Q16']
ASK WHERE { resource:Q5982072 property:P27 ?h . VALUES ( ?h ) { ( resource:Q408 ) ( resource:Q16 ) } }
Yes
action is_in
entity prev_answer
action find
entity Ian Lloyd
relation country of citizenship
['Ian Lloyd', 'country of citizenship', 'Australia'] ['Ian Lloyd', 'country of citizenship', 'Canada']
ASK WHERE { resource:Ian_Lloyd property:country_of_citizenship ?h . VALUES ( ?h ) { ( resource:Australia ) ( resource:Canada ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q35
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with more number of political territories than Denmark ?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?k ) WHERE { ?d property:P530 ?g . ?d rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q35 property:P530 ?r . ?r rdf:type ontology:Q1048835 } } . FILTER ( ?k > ?l ) }
Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?k ) WHERE { ?d property:diplomatic_relation ?g . ?d rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Denmark property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } } . FILTER ( ?k > ?l ) }
[]
political territorial entity political territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with more number of political territories than Denmark
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?k ) WHERE { ?d property:P530 ?g . ?d rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q35 property:P530 ?r . ?r rdf:type ontology:Q1048835 } } . FILTER ( ?k > ?l ) }
Germany Australia Canada
Germany, Australia and Canada have diplomatic relationships with more number of political territories than Denmark
Germany Australia Canada
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?g ) AS ?k ) WHERE { ?d property:diplomatic_relation ?g . ?d rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Denmark property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } } . FILTER ( ?k > ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q685
P530
Q1048835 Q1048835
USER
And how about Solomon Islands?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s property:P530 ?m . ?m rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q685 property:P530 ?q . ?q rdf:type ontology:Q1048835 } } . FILTER ( ?p > ?l ) }
Solomon Islands
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity } } . FILTER ( ?p > ?l ) }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s property:P530 ?m . ?m rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q685 property:P530 ?q . ?q rdf:type ontology:Q1048835 } } . FILTER ( ?p > ?l ) }
Austria Germany Australia Denmark Canada New Zealand
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity } } . FILTER ( ?p > ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q408 Q5589383
P35
Q502895
USER
How many people are the chiefs of state of Australia or Government of the 6th Dáil ?
(Q408,P35,c(Q502895)) (Q5589383,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q408
relation P35
type Q502895
action filter_type
action find
entity Q5589383
relation P35
type Q502895
['Q408', 'P35', {'concept': 'Q502895'}] ['Q5589383', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { resource:Q408 property:P35 ?s . ?s rdf:type ontology:Q502895 } UNION { resource:Q5589383 property:P35 ?s . ?s rdf:type ontology:Q502895 } }
Australia Government of the 6th Dáil
action count
action union
action filter_type
action find
entity Australia
relation head of state
type common name
action filter_type
action find
entity Government of the 6th Dáil
relation head of state
type common name
['Australia', 'head of state', {'concept': 'common name'}] ['Government of the 6th Dáil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { resource:Australia property:head_of_state ?s . ?s rdf:type ontology:common_name } UNION { resource:Government_of_the_6th_Dáil property:head_of_state ?s . ?s rdf:type ontology:common_name } }
[]
common name
SYSTEM
17
Q189186 Q335310 Q1356927 Q250087 Q1354229 Q335033 Q735387 Q269412 Q355053 Q1354851 Q1382174 Q335323 Q229300 Q333824 Q976974 Q9682 Q267745
(Q408,P35,c(Q502895)) (Q5589383,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q408
relation P35
type Q502895
action filter_type
action find
entity Q5589383
relation P35
type Q502895
[ANSWER]
['Q408', 'P35', {'concept': 'Q502895'}] ['Q5589383', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { resource:Q408 property:P35 ?s . ?s rdf:type ontology:Q502895 } UNION { resource:Q5589383 property:P35 ?s . ?s rdf:type ontology:Q502895 } }
Zelman Cowen Richard Casey, Baron Casey Ninian Stephen Bill Hayden Peter Hollingworth William Slim, 1st Viscount Slim William McKell George V Michael Jeffery John Kerr Paul Hasluck William Morrison, 1st Viscount Dunrossil Quentin Bryce William Sidney, 1st Viscount De L'Isle Peter Cosgrove Elizabeth II William Deane
17
action count
action union
action filter_type
action find
entity Australia
relation head of state
type common name
action filter_type
action find
entity Government of the 6th Dáil
relation head of state
type common name
['Australia', 'head of state', {'concept': 'common name'}] ['Government of the 6th Dáil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { resource:Australia property:head_of_state ?s . ?s rdf:type ontology:common_name } UNION { resource:Government_of_the_6th_Dáil property:head_of_state ?s . ?s rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q408
P163
Q14660
USER
What is associated with that political territory ?
action filter_type
action find
entity Q408
relation P163
type Q14660
SELECT DISTINCT ?k WHERE { resource:Q408 property:P163 ?k . ?k rdf:type ontology:Q14660 }
Australia
action filter_type
action find
entity Australia
relation flag
type flag
SELECT DISTINCT ?k WHERE { resource:Australia property:flag ?k . ?k rdf:type ontology:flag }
[]
flag
Q81676
SYSTEM
flag of Australia
Q81676
action filter_type
action find
entity Q408
relation P163
type Q14660
The [ANSWER] is associated with that political territory
SELECT DISTINCT ?k WHERE { resource:Q408 property:P163 ?k . ?k rdf:type ontology:Q14660 }
flag of Australia
The flag of Australia is associated with that political territory
flag of Australia
action filter_type
action find
entity Australia
relation flag
type flag
SELECT DISTINCT ?k WHERE { resource:Australia property:flag ?k . ?k rdf:type ontology:flag }
[]