Simple Question (Direct)
Simple Question
Q93806
P21
Q290
USER
What is the sex of Delyth Morgan, Baroness Morgan of Drefelin ?
(Q93806,P21,c(Q290))
action filter_type
action find
entity Q93806
relation P21
type Q290
['Q93806', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q93806 property:P21 ?u . ?u rdf:type ontology:Q290 }
Delyth Morgan, Baroness Morgan of Drefelin
action filter_type
action find
entity Delyth Morgan, Baroness Morgan of Drefelin
relation gender
type sex
['Delyth Morgan, Baroness Morgan of Drefelin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Delyth_Morgan,_Baroness_Morgan_of_Drefelin property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q93806,P21,c(Q290))
action filter_type
action find
entity Q93806
relation P21
type Q290
The sex of Delyth Morgan , Baroness Morgan of Drefelin is the [ANSWER]
['Q93806', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q93806 property:P21 ?u . ?u rdf:type ontology:Q290 }
female
The sex of Delyth Morgan , Baroness Morgan of Drefelin is the female
female
action filter_type
action find
entity Delyth Morgan, Baroness Morgan of Drefelin
relation gender
type sex
['Delyth Morgan, Baroness Morgan of Drefelin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Delyth_Morgan,_Baroness_Morgan_of_Drefelin property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q93806
P19
Q56061
USER
Where was Delyth Morgan, Baroness Morgan of Drefelin born ?
(Q93806,P19,c(Q56061))
action filter_type
action find
entity Q93806
relation P19
type Q56061
['Q93806', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . resource:Q93806 property:P19 ?i }
Delyth Morgan, Baroness Morgan of Drefelin
action filter_type
action find
entity Delyth Morgan, Baroness Morgan of Drefelin
relation place of birth
type administrative territorial entity
['Delyth Morgan, Baroness Morgan of Drefelin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . resource:Delyth_Morgan,_Baroness_Morgan_of_Drefelin property:place_of_birth ?i }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q93806,P19,c(Q56061))
action filter_type
action find
entity Q93806
relation P19
type Q56061
Delyth Morgan , Baroness Morgan of Drefelin was born in [ANSWER]
['Q93806', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . resource:Q93806 property:P19 ?i }
London
Delyth Morgan , Baroness Morgan of Drefelin was born in London
London
action filter_type
action find
entity Delyth Morgan, Baroness Morgan of Drefelin
relation place of birth
type administrative territorial entity
['Delyth Morgan, Baroness Morgan of Drefelin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . resource:Delyth_Morgan,_Baroness_Morgan_of_Drefelin property:place_of_birth ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q93806
P1412
Q34770
USER
Which language can that person understand ?
(Q84,P1412,c(Q34770))
action filter_type
action find
entity Q93806
relation P1412
type Q34770
['Q84', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q93806 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
Delyth Morgan, Baroness Morgan of Drefelin
action filter_type
action find
entity Delyth Morgan, Baroness Morgan of Drefelin
relation languages spoken, written or signed
type language
['London', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Delyth_Morgan,_Baroness_Morgan_of_Drefelin property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q84,P1412,c(Q34770))
action filter_type
action find
entity Q93806
relation P1412
type Q34770
That person can understand the [ANSWER]
['Q84', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q93806 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
English
That person can understand the English
English
action filter_type
action find
entity Delyth Morgan, Baroness Morgan of Drefelin
relation languages spoken, written or signed
type language
['London', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Delyth_Morgan,_Baroness_Morgan_of_Drefelin property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1404627 Q93806
P27
Q15617994
USER
Which administrative territories are Delyth Morgan, Baroness Morgan of Drefelin or Fendry Ekel a civilian of ?
OR((Q93806,P27,c(Q15617994)), (Q1404627,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q93806
relation P27
action find
entity Q1404627
relation P27
type Q15617994
{'OR': [['Q93806', 'P27', {'concept': 'Q15617994'}], ['Q1404627', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?u ) { ( resource:Q93806 ) ( resource:Q1404627 ) } . ?u property:P27 ?d } . ?d rdf:type ontology:Q15617994 }
Fendry Ekel Delyth Morgan, Baroness Morgan of Drefelin
action filter_type
action union
action find
entity Delyth Morgan, Baroness Morgan of Drefelin
relation country of citizenship
action find
entity Fendry Ekel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Delyth Morgan, Baroness Morgan of Drefelin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fendry Ekel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?u ) { ( resource:Delyth_Morgan,_Baroness_Morgan_of_Drefelin ) ( resource:Fendry_Ekel ) } . ?u property:country_of_citizenship ?d } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999 Q145
SYSTEM
Kingdom of the Netherlands, United Kingdom
Q29999 Q145
OR((Q93806,P27,c(Q15617994)), (Q1404627,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q93806
relation P27
action find
entity Q1404627
relation P27
type Q15617994
[ANSWERS] are Delyth Morgan, Baroness Morgan of Drefelin or Fendry Ekel a civilian of
{'OR': [['Q93806', 'P27', {'concept': 'Q15617994'}], ['Q1404627', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?u ) { ( resource:Q93806 ) ( resource:Q1404627 ) } . ?u property:P27 ?d } . ?d rdf:type ontology:Q15617994 }
Kingdom of the Netherlands United Kingdom
Kingdom of the Netherlands and United Kingdom are Delyth Morgan, Baroness Morgan of Drefelin or Fendry Ekel a civilian of
Kingdom of the Netherlands United Kingdom
action filter_type
action union
action find
entity Delyth Morgan, Baroness Morgan of Drefelin
relation country of citizenship
action find
entity Fendry Ekel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Delyth Morgan, Baroness Morgan of Drefelin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fendry Ekel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?u ) { ( resource:Delyth_Morgan,_Baroness_Morgan_of_Drefelin ) ( resource:Fendry_Ekel ) } . ?u property:country_of_citizenship ?d } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1237
P194
Q11204 Q35749 Q15617994
USER
Which administrative territories have approximately the same number of legislatures or parliaments as their legislative body as Trentino-South Tyrol ?
(c(Q15617994),P194,c(Q11204)|c(Q35749))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action count
action filter_multi_types
action find
entity Q1237
relation P194
type Q11204
type Q35749
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?t ) WHERE { { ?b property:P194 ?z . ?b rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q11204 } UNION { ?b property:P194 ?z . ?b rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q35749 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { resource:Q1237 property:P194 ?d . { { ?d rdf:type ontology:Q35749 } UNION { ?d rdf:type ontology:Q11204 } } } } . FILTER ( ?t = ?p ) }
Trentino-South Tyrol
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action count
action filter_multi_types
action find
entity Trentino-South Tyrol
relation legislative body
type legislature
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?t ) WHERE { { ?b property:legislative_body ?z . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:legislature } UNION { ?b property:legislative_body ?z . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:parliament } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { resource:Trentino-South_Tyrol property:legislative_body ?d . { { ?d rdf:type ontology:parliament } UNION { ?d rdf:type ontology:legislature } } } } . FILTER ( ?t = ?p ) }
[]
legislature parliament designation for an administrative territorial entity
Q30 Q159 Q148
SYSTEM
United States of America, Russia, People's Republic of China
Q805 Q800 Q1462 Q1250 Q1948 Q148 Q189 Q786 Q710 Q1460 Q1979 Q159 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q12761 Q244 Q1974 Q31 Q30 Q37 Q1447 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q2009 Q2007 Q2003 Q1458 Q1904 Q227 Q347 Q17 Q1989 Q902 Q191 Q114 Q212 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q1222 Q774 Q1016 Q27 Q1243 Q12626 Q672 Q1951 Q2023 Q1237
(c(Q15617994),P194,c(Q11204)|c(Q35749))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action count
action filter_multi_types
action find
entity Q1237
relation P194
type Q11204
type Q35749
[ANSWERS] have approximately the same number of legislatures or parliaments as their legislative body as Trentino-South Tyrol
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?t ) WHERE { { ?b property:P194 ?z . ?b rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q11204 } UNION { ?b property:P194 ?z . ?b rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q35749 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { resource:Q1237 property:P194 ?d . { { ?d rdf:type ontology:Q35749 } UNION { ?d rdf:type ontology:Q11204 } } } } . FILTER ( ?t = ?p ) }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia Manitoba People's Republic of China Iceland Dominican Republic Kiribati Sicily Prince Edward Island Russia Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Seine-Saint-Denis Barbados British Columbia Belgium United States of America Lithuania Apulia Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Yukon Northwest Territories Newfoundland and Labrador Calabria Ontario Azerbaijan Liechtenstein Japan Saskatchewan Bangladesh Estonia Kenya Ukraine Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Aosta Valley Guatemala Libya Ireland Veneto Meurthe-et-Moselle Tuvalu Alberta Nunavut Trentino-South Tyrol
United States of America, Russia and People's Republic of China have approximately the same number of legislatures or parliaments as their legislative body as Trentino-South Tyrol
United States of America Russia People's Republic of China
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action count
action filter_multi_types
action find
entity Trentino-South Tyrol
relation legislative body
type legislature
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?t ) WHERE { { ?b property:legislative_body ?z . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:legislature } UNION { ?b property:legislative_body ?z . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:parliament } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { resource:Trentino-South_Tyrol property:legislative_body ?d . { { ?d rdf:type ontology:parliament } UNION { ?d rdf:type ontology:legislature } } } } . FILTER ( ?t = ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q187035
P194
Q11204 Q35749 Q15617994
USER
And also tell me about Principality of Albania?
(c(Q15617994),P194,c(Q11204)|c(Q35749))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action count
action filter_multi_types
action find
entity Q187035
relation P194
type Q11204
type Q35749
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?r WHERE { VALUES ( ?t ) { ( ontology:Q11204 ) ( ontology:Q35749 ) } . ?j rdf:type ?t } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q187035 property:P194 ?d . { { ?d rdf:type ontology:Q11204 } UNION { ?d rdf:type ontology:Q35749 } } } } . FILTER ( ?g = ?u ) }
Principality of Albania
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action count
action filter_multi_types
action find
entity Principality of Albania
relation legislative body
type legislature
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?r WHERE { VALUES ( ?t ) { ( ontology:legislature ) ( ontology:parliament ) } . ?j rdf:type ?t } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Principality_of_Albania property:legislative_body ?d . { { ?d rdf:type ontology:legislature } UNION { ?d rdf:type ontology:parliament } } } } . FILTER ( ?g = ?u ) }
[]
legislature parliament designation for an administrative territorial entity
Q38 Q155 Q55
SYSTEM
Italy, Brazil, Netherlands
Q804 Q801 Q419 Q668 Q2806757 Q414 Q142 Q55 Q145 Q717 Q252320 Q187035 Q3361 Q657 Q258 Q45 Q41 Q155 Q4628 Q794 Q153529 Q1965 Q242 Q33 Q32 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q104192 Q603676 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q184 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q697 Q298 Q754 Q750 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q16110 Q694594 Q79 Q77 Q811 Q1011 Q1013 Q12620 Q176 Q1952 Q869
(c(Q15617994),P194,c(Q11204)|c(Q35749))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action count
action filter_multi_types
action find
entity Q187035
relation P194
type Q11204
type Q35749
[ANSWERS]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?r WHERE { VALUES ( ?t ) { ( ontology:Q11204 ) ( ontology:Q35749 ) } . ?j rdf:type ?t } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q187035 property:P194 ?d . { { ?d rdf:type ontology:Q11204 } UNION { ?d rdf:type ontology:Q35749 } } } } . FILTER ( ?g = ?u ) }
Panama Israel Peru India 105 Mile Post Indian Reserve No. 2 Argentina France Netherlands United Kingdom Venezuela Pleinfeld Principality of Albania Doubs Chad South Africa Portugal Greece Brazil Faroe Islands Iran Duchy of Milan New Brunswick Belize Finland Luxembourg Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Kleinmachnow District of Keewatin comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Belarus Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Nauru Chile Trinidad and Tobago Bolivia Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria region of Italy Bremen-Verden Egypt Uruguay Nicaragua Cape Verde Lesotho Mayenne Quebec Nova Scotia Thailand
Italy Brazil Netherlands
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action count
action filter_multi_types
action find
entity Principality of Albania
relation legislative body
type legislature
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) ?r WHERE { VALUES ( ?t ) { ( ontology:legislature ) ( ontology:parliament ) } . ?j rdf:type ?t } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Principality_of_Albania property:legislative_body ?d . { { ?d rdf:type ontology:legislature } UNION { ?d rdf:type ontology:parliament } } } } . FILTER ( ?g = ?u ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7199195
P530
Q15617994
USER
Do Pittsburg Independent School District have tactful political relations with those ones ?
(Q7199195,P530,Q38) (Q7199195,P530,Q155) (Q7199195,P530,Q55)
action is_in
entity prev_answer
action find
entity Q7199195
relation P530
['Q7199195', 'P530', 'Q38'] ['Q7199195', 'P530', 'Q155'] ['Q7199195', 'P530', 'Q55']
ASK WHERE { resource:Q7199195 property:P530 ?p . VALUES ( ?p ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q419 ) } }
Pittsburg Independent School District
action is_in
entity prev_answer
action find
entity Pittsburg Independent School District
relation diplomatic relation
['Pittsburg Independent School District', 'diplomatic relation', 'Italy'] ['Pittsburg Independent School District', 'diplomatic relation', 'Brazil'] ['Pittsburg Independent School District', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Pittsburg_Independent_School_District property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Panama ) ( resource:Israel ) ( resource:Peru ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q7199195,P530,Q38) (Q7199195,P530,Q155) (Q7199195,P530,Q55)
action is_in
entity prev_answer
action find
entity Q7199195
relation P530
[ANSWER]
['Q7199195', 'P530', 'Q38'] ['Q7199195', 'P530', 'Q155'] ['Q7199195', 'P530', 'Q55']
ASK WHERE { resource:Q7199195 property:P530 ?p . VALUES ( ?p ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q419 ) } }
No
action is_in
entity prev_answer
action find
entity Pittsburg Independent School District
relation diplomatic relation
['Pittsburg Independent School District', 'diplomatic relation', 'Italy'] ['Pittsburg Independent School District', 'diplomatic relation', 'Brazil'] ['Pittsburg Independent School District', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Pittsburg_Independent_School_District property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Panama ) ( resource:Israel ) ( resource:Peru ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q6787277
P138
Q337567 Q12737077 Q56061
USER
Which administrative territories have more number of still waterss or occupations as their toponym than Mathinna ?
(c(Q56061),P138,c(Q337567)|c(Q12737077))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q337567
action find_tuple_counts
relation P138
type Q56061
type Q12737077
action count
action filter_multi_types
action find
entity Q6787277
relation P138
type Q337567
type Q12737077
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q337567'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?r > ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { { ?z rdf:type ontology:Q337567 } UNION { ?z rdf:type ontology:Q12737077 } } . resource:Q6787277 property:P138 ?z } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?g WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q337567 ) ( ontology:Q12737077 ) } } GROUP BY ?g } }
Mathinna
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type still waters
action find_tuple_counts
relation named after
type administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Mathinna
relation named after
type still waters
type occupation
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'still waters'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?r > ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { { ?z rdf:type ontology:still_waters } UNION { ?z rdf:type ontology:occupation } } . resource:Mathinna property:named_after ?z } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?g WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:still_waters ) ( ontology:occupation ) } } GROUP BY ?g } }
[]
still waters occupation administrative territorial entity
Q83178 Q12980087 Q2605640
SYSTEM
Almere, Flaten, Gasselterboerveen
Q2284698 Q83178 Q2605640 Q18682030 Q11899935 Q11870465 Q18659914 Q12980087 Q11901984 Q11873198 Q11901400
(c(Q56061),P138,c(Q337567)|c(Q12737077))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q337567
action find_tuple_counts
relation P138
type Q56061
type Q12737077
action count
action filter_multi_types
action find
entity Q6787277
relation P138
type Q337567
type Q12737077
[ANSWERS] have more number of still waterss or occupations as their toponym than Mathinna
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q337567'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?r > ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { { ?z rdf:type ontology:Q337567 } UNION { ?z rdf:type ontology:Q12737077 } } . resource:Q6787277 property:P138 ?z } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?g WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q337567 ) ( ontology:Q12737077 ) } } GROUP BY ?g } }
Munnekemoer Almere Gasselterboerveen Kivijärvi Vaalajärvi Kauhajärvi Kauhajärvi Flaten Vuontisjärvi Kuivasjärvi Vikajärvi
Almere, Flaten and Gasselterboerveen have more number of still waterss or occupations as their toponym than Mathinna
Almere Flaten Gasselterboerveen
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type still waters
action find_tuple_counts
relation named after
type administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Mathinna
relation named after
type still waters
type occupation
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'still waters'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?r > ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { { ?z rdf:type ontology:still_waters } UNION { ?z rdf:type ontology:occupation } } . resource:Mathinna property:named_after ?z } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?g WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:still_waters ) ( ontology:occupation ) } } GROUP BY ?g } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1144877
P138
Q337567 Q12737077 Q56061
USER
And how about Currie?
(c(Q56061),P138,c(Q337567)|c(Q12737077))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q337567
action find_tuple_counts
relation P138
type Q56061
type Q12737077
action count
action filter_multi_types
action find
entity Q1144877
relation P138
type Q337567
type Q12737077
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q337567'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?w WHERE { { ?w property:P138 ?s . ?w rdf:type ontology:Q56061 . ?s rdf:type ontology:Q337567 } UNION { ?w property:P138 ?s . ?w rdf:type ontology:Q56061 . ?s rdf:type ontology:Q12737077 } } GROUP BY ?w } . FILTER ( ?x > ?d ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q1144877 property:P138 ?a . { ?a rdf:type ?b . VALUES ( ?b ) { ( ontology:Q12737077 ) ( ontology:Q337567 ) } } } } }
Currie
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type still waters
action find_tuple_counts
relation named after
type administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Currie
relation named after
type still waters
type occupation
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'still waters'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?w WHERE { { ?w property:named_after ?s . ?w rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:still_waters } UNION { ?w property:named_after ?s . ?w rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:occupation } } GROUP BY ?w } . FILTER ( ?x > ?d ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Currie property:named_after ?a . { ?a rdf:type ?b . VALUES ( ?b ) { ( ontology:occupation ) ( ontology:still_waters ) } } } } }
[]
still waters occupation administrative territorial entity
Q83178 Q12980087 Q2605640
SYSTEM
Almere, Flaten, Gasselterboerveen
Q2284698 Q83178 Q2605640 Q18682030 Q11899935 Q11870465 Q18659914 Q12980087 Q11901984 Q11873198 Q11901400
(c(Q56061),P138,c(Q337567)|c(Q12737077))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q337567
action find_tuple_counts
relation P138
type Q56061
type Q12737077
action count
action filter_multi_types
action find
entity Q1144877
relation P138
type Q337567
type Q12737077
[ANSWERS]
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q337567'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?w WHERE { { ?w property:P138 ?s . ?w rdf:type ontology:Q56061 . ?s rdf:type ontology:Q337567 } UNION { ?w property:P138 ?s . ?w rdf:type ontology:Q56061 . ?s rdf:type ontology:Q12737077 } } GROUP BY ?w } . FILTER ( ?x > ?d ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q1144877 property:P138 ?a . { ?a rdf:type ?b . VALUES ( ?b ) { ( ontology:Q12737077 ) ( ontology:Q337567 ) } } } } }
Munnekemoer Almere Gasselterboerveen Kivijärvi Vaalajärvi Kauhajärvi Kauhajärvi Flaten Vuontisjärvi Kuivasjärvi Vikajärvi
Almere Flaten Gasselterboerveen
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type still waters
action find_tuple_counts
relation named after
type administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Currie
relation named after
type still waters
type occupation
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'still waters'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?w WHERE { { ?w property:named_after ?s . ?w rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:still_waters } UNION { ?w property:named_after ?s . ?w rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:occupation } } GROUP BY ?w } . FILTER ( ?x > ?d ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Currie property:named_after ?a . { ?a rdf:type ?b . VALUES ( ?b ) { ( ontology:occupation ) ( ontology:still_waters ) } } } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1442729 Q1144877
P47 P17
Q1048835
USER
Which political territories are Currie present in or have a shared border with Corullón ?
OR((Q1144877,P17,c(Q1048835)), (Q1442729,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1144877
relation P17
action find
entity Q1442729
relation P47
type Q1048835
{'OR': [['Q1144877', 'P17', {'concept': 'Q1048835'}], ['Q1442729', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1144877 property:P17 ?i } UNION { resource:Q1442729 property:P47 ?i } } . ?i rdf:type ontology:Q1048835 }
Corullón Currie
action filter_type
action union
action find
entity Currie
relation country
action find
entity Corullón
relation shares border with
type political territorial entity
{'OR': [['Currie', 'country', {'concept': 'political territorial entity'}], ['Corullón', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Currie property:country ?i } UNION { resource:Corullón property:shares_border_with ?i } } . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q842698 Q1990944 Q3332541 Q848300 Q408 Q1605971 Q1617652
SYSTEM
Trabadelo, Sobrado, Toral de los Vados, Villafranca del Bierzo, Australia, Barjas, Oencia
Q842698 Q1990944 Q3332541 Q848300 Q408 Q1605971 Q1617652
OR((Q1144877,P17,c(Q1048835)), (Q1442729,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1144877
relation P17
action find
entity Q1442729
relation P47
type Q1048835
Currie are have in [ANSWERS]
{'OR': [['Q1144877', 'P17', {'concept': 'Q1048835'}], ['Q1442729', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1144877 property:P17 ?i } UNION { resource:Q1442729 property:P47 ?i } } . ?i rdf:type ontology:Q1048835 }
Trabadelo Sobrado Toral de los Vados Villafranca del Bierzo Australia Barjas Oencia
Currie are have in Trabadelo, Sobrado, Toral de los Vados, Villafranca del Bierzo, Australia, Barjas and Oencia
Trabadelo Sobrado Toral de los Vados Villafranca del Bierzo Australia Barjas Oencia
action filter_type
action union
action find
entity Currie
relation country
action find
entity Corullón
relation shares border with
type political territorial entity
{'OR': [['Currie', 'country', {'concept': 'political territorial entity'}], ['Corullón', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Currie property:country ?i } UNION { resource:Corullón property:shares_border_with ?i } } . ?i rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q842698 Q1990944 Q3332541 Q848300 Q408 Q1605971 Q1617652
P1313
Q12737077
USER
Which occupations serve as the political office that are fulfilled by the head of the government of those political territories ?
(Q842698,P1313,c(Q12737077)) (Q1990944,P1313,c(Q12737077)) (Q3332541,P1313,c(Q12737077)) (Q848300,P1313,c(Q12737077)) (Q408,P1313,c(Q12737077)) (Q1605971,P1313,c(Q12737077)) (Q1617652,P1313,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P1313
type Q12737077
['Q842698', 'P1313', {'concept': 'Q12737077'}] ['Q1990944', 'P1313', {'concept': 'Q12737077'}] ['Q3332541', 'P1313', {'concept': 'Q12737077'}] ['Q848300', 'P1313', {'concept': 'Q12737077'}] ['Q408', 'P1313', {'concept': 'Q12737077'}] ['Q1605971', 'P1313', {'concept': 'Q12737077'}] ['Q1617652', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?x property:P1313 ?f . ?f rdf:type ontology:Q12737077 . VALUES ( ?x ) { ( resource:Q842698 ) ( resource:Q1990944 ) ( resource:Q3332541 ) } }
Trabadelo Sobrado Toral de los Vados Villafranca del Bierzo Australia Barjas Oencia
action filter_type
action find
entity prev_answer
relation office held by head of government
type occupation
['Trabadelo', 'office held by head of government', {'concept': 'occupation'}] ['Sobrado', 'office held by head of government', {'concept': 'occupation'}] ['Toral de los Vados', 'office held by head of government', {'concept': 'occupation'}] ['Villafranca del Bierzo', 'office held by head of government', {'concept': 'occupation'}] ['Australia', 'office held by head of government', {'concept': 'occupation'}] ['Barjas', 'office held by head of government', {'concept': 'occupation'}] ['Oencia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?x property:office_held_by_head_of_government ?f . ?f rdf:type ontology:occupation . VALUES ( ?x ) { ( resource:Trabadelo ) ( resource:Sobrado ) ( resource:Toral_de_los_Vados ) } }
[]
occupation
Q319145 Q26700871 Q26697516
SYSTEM
Prime Minister of Australia, mayor of Trabadelo, mayor of Sobrado
Q26700871 Q26697516 Q26697969 Q26700893 Q319145 Q26691883 Q26692361
(Q842698,P1313,c(Q12737077)) (Q1990944,P1313,c(Q12737077)) (Q3332541,P1313,c(Q12737077)) (Q848300,P1313,c(Q12737077)) (Q408,P1313,c(Q12737077)) (Q1605971,P1313,c(Q12737077)) (Q1617652,P1313,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P1313
type Q12737077
[ANSWERS] serve as the political office that are fulfilled by the head of the government of those political territories
['Q842698', 'P1313', {'concept': 'Q12737077'}] ['Q1990944', 'P1313', {'concept': 'Q12737077'}] ['Q3332541', 'P1313', {'concept': 'Q12737077'}] ['Q848300', 'P1313', {'concept': 'Q12737077'}] ['Q408', 'P1313', {'concept': 'Q12737077'}] ['Q1605971', 'P1313', {'concept': 'Q12737077'}] ['Q1617652', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?x property:P1313 ?f . ?f rdf:type ontology:Q12737077 . VALUES ( ?x ) { ( resource:Q842698 ) ( resource:Q1990944 ) ( resource:Q3332541 ) } }
mayor of Trabadelo mayor of Sobrado mayor of Toral de los Vados mayor of Villafranca del Bierzo Prime Minister of Australia mayor of Barjas mayor of Oencia
Prime Minister of Australia, mayor of Trabadelo and mayor of Sobrado serve as the political office that are fulfilled by the head of the government of those political territories
Prime Minister of Australia mayor of Trabadelo mayor of Sobrado
action filter_type
action find
entity prev_answer
relation office held by head of government
type occupation
['Trabadelo', 'office held by head of government', {'concept': 'occupation'}] ['Sobrado', 'office held by head of government', {'concept': 'occupation'}] ['Toral de los Vados', 'office held by head of government', {'concept': 'occupation'}] ['Villafranca del Bierzo', 'office held by head of government', {'concept': 'occupation'}] ['Australia', 'office held by head of government', {'concept': 'occupation'}] ['Barjas', 'office held by head of government', {'concept': 'occupation'}] ['Oencia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?x property:office_held_by_head_of_government ?f . ?f rdf:type ontology:occupation . VALUES ( ?x ) { ( resource:Trabadelo ) ( resource:Sobrado ) ( resource:Toral_de_los_Vados ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q83178
P190
Q56061
USER
Which administrative territories are sister towns of Almere ?
(Q83178,P190,c(Q56061))
action filter_type
action find
entity Q83178
relation P190
type Q56061
['Q83178', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q83178 property:P190 ?l . ?l rdf:type ontology:Q56061 }
Almere
action filter_type
action find
entity Almere
relation sister city
type administrative territorial entity
['Almere', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Almere property:sister_city ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q25410 Q182059 Q102334
SYSTEM
Aalborg, Kumasi, Dmitrov
Q204234 Q25410 Q182059 Q102334 Q205905
(Q83178,P190,c(Q56061))
action filter_type
action find
entity Q83178
relation P190
type Q56061
[ANSWERS] are sister towns of Almere
['Q83178', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q83178 property:P190 ?l . ?l rdf:type ontology:Q56061 }
Milton Keynes Aalborg Kumasi Dmitrov Lancaster
Aalborg, Kumasi and Dmitrov are sister towns of Almere
Aalborg Kumasi Dmitrov
action filter_type
action find
entity Almere
relation sister city
type administrative territorial entity
['Almere', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Almere property:sister_city ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q25410
P276
Q2668072
USER
Which collection is situated at that administrative territory ?
(c(Q2668072),P276,Q25410)
action filter_type
action find_reverse
entity Q25410
relation P276
type Q2668072
[{'concept': 'Q2668072'}, 'P276', 'Q25410']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q25410 . ?h rdf:type ontology:Q2668072 }
Aalborg
action filter_type
action find_reverse
entity Aalborg
relation location
type collection
[{'concept': 'collection'}, 'location', 'Aalborg']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Aalborg . ?h rdf:type ontology:collection }
[]
collection
Clarification for simple ques.
Q182059
SYSTEM
Did you mean Kumasi ?
Q25410 Q182059 Q102334
(c(Q2668072),P276,Q25410) (c(Q2668072),P276,Q182059) (c(Q2668072),P276,Q102334)
[ANSWER]
[{'concept': 'Q2668072'}, 'P276', 'Q25410'] [{'concept': 'Q2668072'}, 'P276', 'Q182059'] [{'concept': 'Q2668072'}, 'P276', 'Q102334']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q25410 . ?h rdf:type ontology:Q2668072 }
Aalborg Kumasi Dmitrov
Did you mean Kumasi ?
Kumasi
[{'concept': 'collection'}, 'location', 'Aalborg'] [{'concept': 'collection'}, 'location', 'Kumasi'] [{'concept': 'collection'}, 'location', 'Dmitrov']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Aalborg . ?h rdf:type ontology:collection }
[]
Simple Question (Coreferenced)
USER
No, I meant Aalborg. Could you tell me the answer for that?
(c(Q2668072),P276,Q25410)
Q25410
[{'concept': 'Q2668072'}, 'P276', 'Q25410']
[{'concept': 'collection'}, 'location', 'Aalborg']
[]
Q15222206
SYSTEM
Gråbrødrekloster Museum
Q15222206
(c(Q2668072),P276,Q25410)
action filter_type
action find_reverse
entity Q25410
relation P276
type Q2668072
[ANSWER] is situated at that administrative territory
[{'concept': 'Q2668072'}, 'P276', 'Q25410']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q25410 . ?h rdf:type ontology:Q2668072 }
Gråbrødrekloster Museum
Gråbrødrekloster Museum is situated at that administrative territory
Gråbrødrekloster Museum
action filter_type
action find_reverse
entity Aalborg
relation location
type collection
[{'concept': 'collection'}, 'location', 'Aalborg']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Aalborg . ?h rdf:type ontology:collection }
[]