Simple Question (Direct)
Simple Question
Q8846905
P102
Q7210356
USER
Which party does Evelyn Matthei belong to ?
(Q8846905,P102,c(Q7210356))
action filter_type
action find
entity Q8846905
relation P102
type Q7210356
['Q8846905', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7210356 . resource:Q8846905 property:P102 ?i }
Evelyn Matthei
action filter_type
action find
entity Evelyn Matthei
relation member of political party
type political organization
['Evelyn Matthei', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_organization . resource:Evelyn_Matthei property:member_of_political_party ?i }
[]
political organization
Q1422826
SYSTEM
National Renewal
Q1422826
(Q8846905,P102,c(Q7210356))
action filter_type
action find
entity Q8846905
relation P102
type Q7210356
Evelyn Matthei belongs to [ANSWER]
['Q8846905', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7210356 . resource:Q8846905 property:P102 ?i }
National Renewal
Evelyn Matthei belongs to National Renewal
National Renewal
action filter_type
action find
entity Evelyn Matthei
relation member of political party
type political organization
['Evelyn Matthei', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_organization . resource:Evelyn_Matthei property:member_of_political_party ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8846905
P19
Q515
USER
Where was Evelyn Matthei born ?
(Q8846905,P19,c(Q515))
action filter_type
action find
entity Q8846905
relation P19
type Q515
['Q8846905', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q8846905 property:P19 ?r . ?r rdf:type ontology:Q515 }
Evelyn Matthei
action filter_type
action find
entity Evelyn Matthei
relation place of birth
type city
['Evelyn Matthei', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Evelyn_Matthei property:place_of_birth ?r . ?r rdf:type ontology:city }
[]
city
Q2887
SYSTEM
Santiago
Q2887
(Q8846905,P19,c(Q515))
action filter_type
action find
entity Q8846905
relation P19
type Q515
Evelyn Matthei was born in [ANSWER]
['Q8846905', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q8846905 property:P19 ?r . ?r rdf:type ontology:Q515 }
Santiago
Evelyn Matthei was born in Santiago
Santiago
action filter_type
action find
entity Evelyn Matthei
relation place of birth
type city
['Evelyn Matthei', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Evelyn_Matthei property:place_of_birth ?r . ?r rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8846905
P140
Q874405
USER
What is the religion associated with Evelyn Matthei ?
(Q8846905,P140,c(Q874405))
action filter_type
action find
entity Q8846905
relation P140
type Q874405
['Q8846905', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?e WHERE { resource:Q8846905 property:P140 ?e . ?e rdf:type ontology:Q874405 }
Evelyn Matthei
action filter_type
action find
entity Evelyn Matthei
relation religion
type social group
['Evelyn Matthei', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?e WHERE { resource:Evelyn_Matthei property:religion ?e . ?e rdf:type ontology:social_group }
[]
social group
Q1841
SYSTEM
Catholicism
Q1841
(Q8846905,P140,c(Q874405))
action filter_type
action find
entity Q8846905
relation P140
type Q874405
The religion associated with Evelyn Matthei is Roman [ANSWER]
['Q8846905', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?e WHERE { resource:Q8846905 property:P140 ?e . ?e rdf:type ontology:Q874405 }
Catholicism
The religion associated with Evelyn Matthei is Roman Catholicism
Catholicism
action filter_type
action find
entity Evelyn Matthei
relation religion
type social group
['Evelyn Matthei', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?e WHERE { resource:Evelyn_Matthei property:religion ?e . ?e rdf:type ontology:social_group }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P137
Q874405 Q1076486
USER
How many sports venues are the administrator of approximately 1 social group ?
(c(Q1076486),P137,c(Q874405))
action count
action approx
action find_tuple_counts
relation P137
type Q1076486
type Q874405
value 1
[{'concept': 'Q1076486'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?z ) WHERE { ?g property:P137 ?l . ?g rdf:type ontology:Q1076486 . ?l rdf:type ontology:Q874405 } GROUP BY ?g } . FILTER ( ?z = 1 ) }
action count
action approx
action find_tuple_counts
relation operator
type sports venue
type social group
value 1
[{'concept': 'sports venue'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?z ) WHERE { ?g property:operator ?l . ?g rdf:type ontology:sports_venue . ?l rdf:type ontology:social_group } GROUP BY ?g } . FILTER ( ?z = 1 ) }
[]
social group sports venue
SYSTEM
12
Q7040605 Q6429656 Q7081643 Q1190230 Q4739118 Q11586043 Q7181636 Q11548615 Q7830567 Q7828500 Q995550 Q838937
(c(Q1076486),P137,c(Q874405))
action count
action approx
action find_tuple_counts
relation P137
type Q1076486
type Q874405
value 1
[ANSWER]
[{'concept': 'Q1076486'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?z ) WHERE { ?g property:P137 ?l . ?g rdf:type ontology:Q1076486 . ?l rdf:type ontology:Q874405 } GROUP BY ?g } . FILTER ( ?z = 1 ) }
Nishikyogoku Athletic Stadium Konosu Stadium Ojiyama Stadium Todoroki Athletics Stadium Amagasaki Memorial Park Stadium Ishikawa Kanazawa Stadium PhilSports Football and Athletics Stadium K's denki Stadium Mito Toyama Athletic Stadium Tottori Athletics Stadium Tseung Kwan O Sports Ground Mong Kok Stadium
12
action count
action approx
action find_tuple_counts
relation operator
type sports venue
type social group
value 1
[{'concept': 'sports venue'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?l ) AS ?z ) WHERE { ?g property:operator ?l . ?g rdf:type ontology:sports_venue . ?l rdf:type ontology:social_group } GROUP BY ?g } . FILTER ( ?z = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2887
P1376
Q15617994
USER
Which administrative territory has Santiago as its capital ?
(Q2887,P1376,c(Q15617994))
action filter_type
action find
entity Q2887
relation P1376
type Q15617994
['Q2887', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q2887 property:P1376 ?t }
Santiago
action filter_type
action find
entity Santiago
relation capital of
type designation for an administrative territorial entity
['Santiago', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Santiago property:capital_of ?t }
[]
designation for an administrative territorial entity
Q298
SYSTEM
Chile
Q298
(Q2887,P1376,c(Q15617994))
action filter_type
action find
entity Q2887
relation P1376
type Q15617994
[ANSWER] has Santiago as its capital
['Q2887', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q2887 property:P1376 ?t }
Chile
Chile has Santiago as its capital
Chile
action filter_type
action find
entity Santiago
relation capital of
type designation for an administrative territorial entity
['Santiago', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Santiago property:capital_of ?t }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q72670
P36
Q56061 Q515 Q15617994
USER
Which administrative territories contain greater number of administrative territories and cities as their capital than Batumi Oblast ?
(c(Q15617994),P36,c(Q56061)|c(Q515))
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q72670
relation P36
type Q56061
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?w ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?h rdf:type ?w } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q72670 property:P36 ?n . { ?n rdf:type ?t . VALUES ( ?t ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } } } . FILTER ( ?g > ?j ) }
Batumi Oblast
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Batumi Oblast
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?w ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?h rdf:type ?w } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Batumi_Oblast property:capital ?n . { ?n rdf:type ?t . VALUES ( ?t ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } } } . FILTER ( ?g > ?j ) }
[]
administrative territorial entity city designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q252 Q258 Q155 Q1020 Q41 Q30 Q230 Q1033 Q199688 Q12536 Q517333 Q924 Q17 Q160307
(c(Q15617994),P36,c(Q56061)|c(Q515))
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q72670
relation P36
type Q56061
type Q515
[ANSWERS] contain greater number of administrative territories and cities as their capital than Batumi Oblast
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?w ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?h rdf:type ?w } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q72670 property:P36 ?n . { ?n rdf:type ?t . VALUES ( ?t ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } } } . FILTER ( ?g > ?j ) }
Indonesia South Africa Brazil Malawi Greece United States of America Georgia Nigeria Almohad Abbasid caliphate Principality of Polotsk Tanzania Japan Fatimid caliphate
Brazil, United States of America and Georgia contain greater number of administrative territories and cities as their capital than Batumi Oblast
Brazil United States of America Georgia
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Batumi Oblast
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?w ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?h rdf:type ?w } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Batumi_Oblast property:capital ?n . { ?n rdf:type ?t . VALUES ( ?t ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } } } . FILTER ( ?g > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1789890
P36
Q56061 Q515 Q15617994
USER
And how about West Rand District Municipality?
(c(Q15617994),P36,c(Q56061)|c(Q515))
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q1789890
relation P36
type Q56061
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Q1789890 property:P36 ?c . { { ?c rdf:type ontology:Q56061 } UNION { ?c rdf:type ontology:Q515 } } } } . FILTER ( ?d > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?l WHERE { { ?l property:P36 ?m . ?m rdf:type ontology:Q56061 . ?l rdf:type ontology:Q15617994 } UNION { ?l property:P36 ?m . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q515 } } GROUP BY ?l } }
West Rand District Municipality
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity West Rand District Municipality
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:West_Rand_District_Municipality property:capital ?c . { { ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c rdf:type ontology:city } } } } . FILTER ( ?d > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?l WHERE { { ?l property:capital ?m . ?m rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:capital ?m . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:city } } GROUP BY ?l } }
[]
administrative territorial entity city designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q252 Q258 Q155 Q1020 Q41 Q30 Q230 Q1033 Q199688 Q12536 Q517333 Q924 Q17 Q160307
(c(Q15617994),P36,c(Q56061)|c(Q515))
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q1789890
relation P36
type Q56061
type Q515
[ANSWERS]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Q1789890 property:P36 ?c . { { ?c rdf:type ontology:Q56061 } UNION { ?c rdf:type ontology:Q515 } } } } . FILTER ( ?d > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?l WHERE { { ?l property:P36 ?m . ?m rdf:type ontology:Q56061 . ?l rdf:type ontology:Q15617994 } UNION { ?l property:P36 ?m . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q515 } } GROUP BY ?l } }
Indonesia South Africa Brazil Malawi Greece United States of America Georgia Nigeria Almohad Abbasid caliphate Principality of Polotsk Tanzania Japan Fatimid caliphate
Brazil United States of America Georgia
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity West Rand District Municipality
relation capital
type administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:West_Rand_District_Municipality property:capital ?c . { { ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c rdf:type ontology:city } } } } . FILTER ( ?d > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?l WHERE { { ?l property:capital ?m . ?m rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:capital ?m . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:city } } GROUP BY ?l } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q5487552 Q155
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relations with Brazil and are not the countries of citizenship of José Emilio Roldán Pascual ?
AND((Q155,P530,c(Q15617994)), NOT((Q5487552,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q155
relation P530
action find
entity Q5487552
relation P27
type Q15617994
{'AND': [['Q155', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q5487552', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?f WHERE { resource:Q155 property:P530 ?f . MINUS { resource:Q5487552 property:P27 ?f } . ?f rdf:type ontology:Q15617994 }
José Emilio Roldán Pascual Brazil
action filter_type
action difference
action find
entity Brazil
relation diplomatic relation
action find
entity José Emilio Roldán Pascual
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['José Emilio Roldán Pascual', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?f WHERE { resource:Brazil property:diplomatic_relation ?f . MINUS { resource:José_Emilio_Roldán_Pascual property:country_of_citizenship ?f } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q750 Q917 Q733 Q800 Q1029 Q1011 Q423 Q298 Q148 Q822
SYSTEM
Some of them are Bolivia, Bhutan, Paraguay, Costa Rica, Mozambique, Cape Verde, North Korea, Chile, People's Republic of China, Lebanon
Q783 Q801 Q800 Q843 Q1029 Q822 Q241 Q419 Q244 Q668 Q414 Q574 Q142 Q145 Q148 Q96 Q17 Q30 Q36 Q79 Q77 Q38 Q1016 Q739 Q423 Q717 Q983 Q733 Q1011 Q962 Q736 Q298 Q252 Q399 Q403 Q258 Q750 Q212 Q213 Q45 Q159 Q43 Q41 Q734 Q790 Q796 Q794 Q917 Q1033 Q958 Q1049 Q916
AND((Q155,P530,c(Q15617994)), NOT((Q5487552,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q155
relation P530
action find
entity Q5487552
relation P27
type Q15617994
[ANSWERS] have diplomatic relations with Brazil and are not the countries of citizenship of José Emilio Roldán Pascual
{'AND': [['Q155', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q5487552', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?f WHERE { resource:Q155 property:P530 ?f . MINUS { resource:Q5487552 property:P27 ?f } . ?f rdf:type ontology:Q15617994 }
Honduras Israel Costa Rica Pakistan Mozambique Lebanon Cuba Peru Barbados India Argentina East Timor France United Kingdom People's Republic of China Mexico Japan United States of America Poland Egypt Uruguay Italy Libya Colombia North Korea Venezuela Equatorial Guinea Paraguay Cape Verde Benin Ecuador Chile Indonesia Armenia Serbia South Africa Bolivia Ukraine Czech Republic Portugal Russia Turkey Greece Guyana Haiti Iraq Iran Bhutan Nigeria South Sudan Sudan Angola
Bolivia, Bhutan, Paraguay, Costa Rica, Mozambique, Cape Verde, North Korea, Chile, People's Republic of China and Lebanon have diplomatic relations with Brazil and are not the countries of citizenship of José Emilio Roldán Pascual
Bolivia Bhutan Paraguay Costa Rica Mozambique Cape Verde North Korea Chile People's Republic of China Lebanon
action filter_type
action difference
action find
entity Brazil
relation diplomatic relation
action find
entity José Emilio Roldán Pascual
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['José Emilio Roldán Pascual', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?f WHERE { resource:Brazil property:diplomatic_relation ?f . MINUS { resource:José_Emilio_Roldán_Pascual property:country_of_citizenship ?f } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q53216
P840
Q15617994 Q166142 Q838948
USER
Which administrative territories are greater number of applications or works of art set in than Aquileia ?
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q53216
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?p ) WHERE { { ?q property:P840 ?c . ?c rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q166142 } UNION { ?q rdf:type ontology:Q838948 . ?c rdf:type ontology:Q15617994 . ?q property:P840 ?c } } GROUP BY ?c } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:P840 resource:Q53216 . { ?o rdf:type ?d . VALUES ( ?d ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } }
Aquileia
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Aquileia
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?p ) WHERE { { ?q property:narrative_location ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:application } UNION { ?q rdf:type ontology:work_of_art . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:narrative_location ?c } } GROUP BY ?c } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:narrative_location resource:Aquileia . { ?o rdf:type ?d . VALUES ( ?d ) { ( ontology:application ) ( ontology:work_of_art ) } } } } }
[]
designation for an administrative territorial entity application work of art
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q377277 Q805 Q804 Q801 Q278221 Q186115 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q189 Q47428 Q842 Q36678 Q710 Q717 Q837 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q822 Q241 Q232782 Q244 Q1974 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q12798 Q236 Q232 Q233 Q1093 Q20 Q1045 Q1041 Q27 Q913434 Q29 Q127043 Q184 Q1028 Q1458 Q91217 Q1452 Q227 Q225 Q2336399 Q96 Q17 Q1033 Q1030 Q191 Q962 Q963 Q298 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q912 Q2107 Q1007 Q833 Q14859 Q2742 Q836 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q28 Q12620 Q800 Q1952 Q869 Q6247
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q53216
relation P840
type Q166142
type Q838948
[ANSWERS] are greater number of applications or works of art set in than Aquileia
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?p ) WHERE { { ?q property:P840 ?c . ?c rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q166142 } UNION { ?q rdf:type ontology:Q838948 . ?c rdf:type ontology:Q15617994 . ?q property:P840 ?c } } GROUP BY ?c } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:P840 resource:Q53216 . { ?o rdf:type ?d . VALUES ( ?d ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } }
Glückstadt Yemen Panama Israel Berchtesgaden Montmartre India Argentina France Netherlands United Kingdom Algeria People's Republic of China Iceland Valdobbiadene Oman West Bank Kiribati Venezuela Nepal Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Afghanistan South Korea Vietnam Syria Peru Lebanon Cuba Portofino Barbados British Columbia Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Vendée Montenegro Kazakhstan Malta Limburg Norway Somalia Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Belarus Morocco Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Baluchistan Mexico Japan Nigeria Namibia Estonia Benin Botswana Chile Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Mali Wuppertal Guinea-Bissau Malaysia Ansbach Münster Myanmar Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Hungary Mayenne Costa Rica Nova Scotia Thailand Mantua
Italy, Brazil and United States of America are greater number of applications or works of art set in than Aquileia
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Aquileia
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?p ) WHERE { { ?q property:narrative_location ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:application } UNION { ?q rdf:type ontology:work_of_art . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:narrative_location ?c } } GROUP BY ?c } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:narrative_location resource:Aquileia . { ?o rdf:type ?d . VALUES ( ?d ) { ( ontology:application ) ( ontology:work_of_art ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q233
P840
Q15617994 Q166142 Q838948
USER
And also tell me about Malta?
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q233
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?x rdf:type ?m } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { { ?u rdf:type ontology:Q838948 } UNION { ?u rdf:type ontology:Q166142 } } . ?u property:P840 resource:Q233 } } . FILTER ( ?n > ?q ) }
Malta
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Malta
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:application ) } . ?x rdf:type ?m } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { { ?u rdf:type ontology:work_of_art } UNION { ?u rdf:type ontology:application } } . ?u property:narrative_location resource:Malta } } . FILTER ( ?n > ?q ) }
[]
designation for an administrative territorial entity application work of art
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q804 Q801 Q668 Q414 Q142 Q55 Q145 Q148 Q189 Q710 Q717 Q837 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q236 Q232 Q20 Q27 Q29 Q184 Q1028 Q227 Q96 Q17 Q1033 Q1030 Q191 Q298 Q750 Q212 Q218 Q14859 Q2742 Q79 Q77 Q774 Q817 Q810 Q1014 Q28 Q1952 Q869
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q233
relation P840
type Q166142
type Q838948
[ANSWERS]
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?x rdf:type ?m } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { { ?u rdf:type ontology:Q838948 } UNION { ?u rdf:type ontology:Q166142 } } . ?u property:P840 resource:Q233 } } . FILTER ( ?n > ?q ) }
Yemen Panama Israel India Argentina France Netherlands United Kingdom People's Republic of China Iceland Kiribati Venezuela Nepal South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Syria Peru Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Montenegro Kazakhstan Norway Ireland Spain Belarus Morocco Azerbaijan Mexico Japan Nigeria Namibia Estonia Chile Bolivia Ukraine Romania Ansbach Münster Egypt Uruguay Guatemala Kuwait Jordan Liberia Hungary Nova Scotia Thailand
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Malta
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:application ) } . ?x rdf:type ?m } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { { ?u rdf:type ontology:work_of_art } UNION { ?u rdf:type ontology:application } } . ?u property:narrative_location resource:Malta } } . FILTER ( ?n > ?q ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q30
P840
Q15416
USER
Which television programs have their narrative set in Italy, Brazil and United States of America ?
(c(Q15416),P840,Q38) (c(Q15416),P840,Q155) (c(Q15416),P840,Q30)
action union
action filter_type
action find_reverse
entity Q38
relation P840
type Q15416
action filter_type
action find_reverse
entity Q155
relation P840
type Q15416
action filter_type
action find_reverse
entity Q30
relation P840
type Q15416
[{'concept': 'Q15416'}, 'P840', 'Q38'] [{'concept': 'Q15416'}, 'P840', 'Q155'] [{'concept': 'Q15416'}, 'P840', 'Q30']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:Q15416 . ?f property:P840 resource:Q38 } UNION { ?f property:P840 resource:Q155 . ?f rdf:type ontology:Q15416 } }
Italy Brazil United States of America
action union
action filter_type
action find_reverse
entity Italy
relation narrative location
type television program
action filter_type
action find_reverse
entity Brazil
relation narrative location
type television program
action filter_type
action find_reverse
entity United States of America
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Italy'] [{'concept': 'television program'}, 'narrative location', 'Brazil'] [{'concept': 'television program'}, 'narrative location', 'United States of America']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:television_program . ?f property:narrative_location resource:Italy } UNION { ?f property:narrative_location resource:Brazil . ?f rdf:type ontology:television_program } }
[]
television program
Q974961 Q680846 Q1026696
SYSTEM
Les Uns et les Autres, The Poppy Is Also a Flower, Da Vinci's Demons
Q672175 Q7715220 Q7770245 Q3790071 Q5137591 Q7919973 Q5057712 Q5057713 Q532254 Q3259694 Q924885 Q82126 Q680846 Q3648142 Q500032 Q2123805 Q834868 Q347881 Q12118126 Q12125897 Q18123902 Q5598995 Q1214064 Q1026696 Q3824280 Q6525902 Q609735 Q3823097 Q17426152 Q484654 Q17104499 Q4063237 Q16490022 Q7365426 Q19972753 Q967301 Q3285998 Q4923927 Q1826017 Q7666223 Q14954371 Q1962841 Q6929928 Q18928894 Q1753093 Q1767491 Q5915000 Q509805 Q974961 Q7246112 Q7805092 Q6939624 Q18153618 Q5902601 Q7753207
(c(Q15416),P840,Q38) (c(Q15416),P840,Q155) (c(Q15416),P840,Q30)
action union
action filter_type
action find_reverse
entity Q38
relation P840
type Q15416
action filter_type
action find_reverse
entity Q155
relation P840
type Q15416
action filter_type
action find_reverse
entity Q30
relation P840
type Q15416
Les Uns et les Autres, The Poppy is Also a Flower and Da Vinci's Demons have their narrative set in Italy, Brazil and United States of America
[{'concept': 'Q15416'}, 'P840', 'Q38'] [{'concept': 'Q15416'}, 'P840', 'Q155'] [{'concept': 'Q15416'}, 'P840', 'Q30']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:Q15416 . ?f property:P840 resource:Q38 } UNION { ?f property:P840 resource:Q155 . ?f rdf:type ontology:Q15416 } }
Borgia The Bachelor The Trip The Borgias Coach Trip Venice 24/7 Celebrity Coach Trip Celebrity Coach Trip To Rome with Love Only You Sabrina Goes to Rome The Tuskegee Airmen The Poppy Is Also a Flower C'era una volta la città dei matti... Inspector Rex Zen The Borgias Amanda Knox: Murder on Trial in Italy Escapade in Florence Lovestruck: The Musical Muchacha italiana viene a casarse Great Continental Railway Journeys The Crusaders Da Vinci's Demons Sword of Freedom Leonardo Sin Vergüenza My House in Umbria An Impossible Job Athena: Goddess of War Naked and Afraid Real World/Road Rules Challenge: The Duel Anabel Ronaldinho Gaucho's Team Wild Brazil Alma Gêmea Desejo Proibido Survivor: Tocantins Survivor: The Amazon Sítio do Picapau Amarelo Brazil with Michael Palin The Burning Season Mrs Biggs Dupla Identidade Ben 10: Race Against Time Ben 10: Alien Swarm House of Harmony Sanctimony Les Uns et les Autres Private Lies Time Share Murrow The Roosevelts Horatio's Drive: America's First Road Trip The National Parks: America's Best Idea
Les Uns et les Autres, The Poppy is Also a Flower and Da Vinci's Demons have their narrative set in Italy, Brazil and United States of America
Les Uns et les Autres The Poppy Is Also a Flower Da Vinci's Demons
action union
action filter_type
action find_reverse
entity Italy
relation narrative location
type television program
action filter_type
action find_reverse
entity Brazil
relation narrative location
type television program
action filter_type
action find_reverse
entity United States of America
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Italy'] [{'concept': 'television program'}, 'narrative location', 'Brazil'] [{'concept': 'television program'}, 'narrative location', 'United States of America']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:television_program . ?f property:narrative_location resource:Italy } UNION { ?f property:narrative_location resource:Brazil . ?f rdf:type ontology:television_program } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q680846
P57
Q502895
USER
Which people directed that television program ?
(Q680846,P57,c(Q502895))
action filter_type
action find
entity Q680846
relation P57
type Q502895
['Q680846', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q680846 property:P57 ?n . ?n rdf:type ontology:Q502895 }
The Poppy Is Also a Flower
action filter_type
action find
entity The Poppy Is Also a Flower
relation director
type common name
['The Poppy Is Also a Flower', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:The_Poppy_Is_Also_a_Flower property:director ?n . ?n rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q974961
SYSTEM
Did you mean Les Uns et les Autres ?
Q974961 Q680846 Q1026696
(Q974961,P57,c(Q502895)) (Q680846,P57,c(Q502895)) (Q1026696,P57,c(Q502895))
[ANSWER]
['Q974961', 'P57', {'concept': 'Q502895'}] ['Q680846', 'P57', {'concept': 'Q502895'}] ['Q1026696', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q680846 property:P57 ?n . ?n rdf:type ontology:Q502895 }
Les Uns et les Autres The Poppy Is Also a Flower Da Vinci's Demons
Did you mean Les Uns et les Autres ?
Les Uns et les Autres
['Les Uns et les Autres', 'director', {'concept': 'common name'}] ['The Poppy Is Also a Flower', 'director', {'concept': 'common name'}] ["Da Vinci's Demons", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:The_Poppy_Is_Also_a_Flower property:director ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant The Poppy Is Also a Flower. Could you tell me the answer for that?
(Q680846,P57,c(Q502895))
Q680846
['Q680846', 'P57', {'concept': 'Q502895'}]
['The Poppy Is Also a Flower', 'director', {'concept': 'common name'}]
[]
Q314882 Q3103031
SYSTEM
Terence Young, Georges Lampin
Q314882 Q3103031
(Q680846,P57,c(Q502895))
action filter_type
action find
entity Q680846
relation P57
type Q502895
The [ANSWERS] directed that television program
['Q680846', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q680846 property:P57 ?n . ?n rdf:type ontology:Q502895 }
Terence Young Georges Lampin
The Terence Young and Georges Lampin directed that television program
Terence Young Georges Lampin
action filter_type
action find
entity The Poppy Is Also a Flower
relation director
type common name
['The Poppy Is Also a Flower', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:The_Poppy_Is_Also_a_Flower property:director ?n . ?n rdf:type ontology:common_name }
[]