Simple Question (Direct)
Simple Question
Q2834943
P21
Q290
USER
Which sex does Alfred Almont have ?
(Q2834943,P21,c(Q290))
action filter_type
action find
entity Q2834943
relation P21
type Q290
['Q2834943', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q2834943 property:P21 ?t }
Alfred Almont
action filter_type
action find
entity Alfred Almont
relation gender
type sex
['Alfred Almont', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Alfred_Almont property:gender ?t }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2834943,P21,c(Q290))
action filter_type
action find
entity Q2834943
relation P21
type Q290
Alfred Almont has a [ANSWER]
['Q2834943', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q2834943 property:P21 ?t }
male
Alfred Almont has a male
male
action filter_type
action find
entity Alfred Almont
relation gender
type sex
['Alfred Almont', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Alfred_Almont property:gender ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2834943
P102
Q7210356
USER
Which parties do Alfred Almont belong to ?
(Q2834943,P102,c(Q7210356))
action filter_type
action find
entity Q2834943
relation P102
type Q7210356
['Q2834943', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q2834943 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Alfred Almont
action filter_type
action find
entity Alfred Almont
relation member of political party
type political organization
['Alfred Almont', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Alfred_Almont property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
political organization
Q1052584 Q173152
SYSTEM
Rally for the Republic, Union for a Popular Movement
Q1052584 Q173152
(Q2834943,P102,c(Q7210356))
action filter_type
action find
entity Q2834943
relation P102
type Q7210356
Alfred Almont belong to [ANSWERS]
['Q2834943', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q2834943 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Rally for the Republic Union for a Popular Movement
Alfred Almont belong to Rally for the Republic and Union for a Popular Movement
Rally for the Republic Union for a Popular Movement
action filter_type
action find
entity Alfred Almont
relation member of political party
type political organization
['Alfred Almont', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Alfred_Almont property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17285721
Q7210356
USER
And also tell me about Ramhit Gupta?
(Q17285721,P102,c(Q7210356))
action filter_type
action find
entity Q17285721
relation P102
type Q7210356
['Q17285721', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q17285721 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Ramhit Gupta
action filter_type
action find
entity Ramhit Gupta
relation member of political party
type political organization
['Ramhit Gupta', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Ramhit_Gupta property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
political organization
Q10230
SYSTEM
Bharatiya Janata Party
Q10230
(Q17285721,P102,c(Q7210356))
action filter_type
action find
entity Q17285721
relation P102
type Q7210356
[ANSWER]
['Q17285721', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q17285721 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Bharatiya Janata Party
Bharatiya Janata Party
action filter_type
action find
entity Ramhit Gupta
relation member of political party
type political organization
['Ramhit Gupta', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Ramhit_Gupta property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19300355 Q2834943
P27
Q15617994
USER
Which administrative territories are the native countriesof Alfred Almont or Josep Elies i Bosquets ?
OR((Q2834943,P27,c(Q15617994)), (Q19300355,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2834943
relation P27
action find
entity Q19300355
relation P27
type Q15617994
{'OR': [['Q2834943', 'P27', {'concept': 'Q15617994'}], ['Q19300355', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q2834943 property:P27 ?x } UNION { resource:Q19300355 property:P27 ?x } } }
Josep Elies i Bosquets Alfred Almont
action filter_type
action union
action find
entity Alfred Almont
relation country of citizenship
action find
entity Josep Elies i Bosquets
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alfred Almont', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Josep Elies i Bosquets', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Alfred_Almont property:country_of_citizenship ?x } UNION { resource:Josep_Elies_i_Bosquets property:country_of_citizenship ?x } } }
[]
designation for an administrative territorial entity
Q142 Q29
SYSTEM
France, Spain
Q142 Q29
OR((Q2834943,P27,c(Q15617994)), (Q19300355,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2834943
relation P27
action find
entity Q19300355
relation P27
type Q15617994
[ANSWERS] are the native countriesof Alfred Almont or Josep Elies i Bosquets
{'OR': [['Q2834943', 'P27', {'concept': 'Q15617994'}], ['Q19300355', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q2834943 property:P27 ?x } UNION { resource:Q19300355 property:P27 ?x } } }
France Spain
France and Spain are the native countriesof Alfred Almont or Josep Elies i Bosquets
France Spain
action filter_type
action union
action find
entity Alfred Almont
relation country of citizenship
action find
entity Josep Elies i Bosquets
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alfred Almont', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Josep Elies i Bosquets', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Alfred_Almont property:country_of_citizenship ?x } UNION { resource:Josep_Elies_i_Bosquets property:country_of_citizenship ?x } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P463
Q484652
USER
How many international organizations were that administrative territory a member of ?
(Q29,P463,c(Q484652))
['Q29', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20266861 property:P463 ?z . ?z rdf:type ontology:Q484652 }
['Spain', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Spain property:member_of ?z . ?z rdf:type ontology:international_organization }
[]
international organization
Quantitative|Count|Single entity type|Clarification
Q29
SYSTEM
Did you mean Spain ?
(Q142,P463,c(Q484652)) (Q29,P463,c(Q484652))
[ANSWER]
['Q142', 'P463', {'concept': 'Q484652'}] ['Q29', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20266861 property:P463 ?z . ?z rdf:type ontology:Q484652 }
Did you mean Spain ?
Spain
['France', 'member of', {'concept': 'international organization'}] ['Spain', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Spain property:member_of ?z . ?z rdf:type ontology:international_organization }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q29,P463,c(Q484652))
['Q29', 'P463', {'concept': 'Q484652'}]
['Spain', 'member of', {'concept': 'international organization'}]
[]
SYSTEM
7
Q81299 Q190008 Q7184 Q1043527 Q188822 Q42262 Q1065
(Q29,P463,c(Q484652))
[ANSWER]
['Q29', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20266861 property:P463 ?z . ?z rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe Central American Bank for Economic Integration North Atlantic Treaty Organisation Multilateral Investment Guarantee Agency Asian Development Bank European Space Agency United Nations
7
['Spain', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Spain property:member_of ?z . ?z rdf:type ontology:international_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2834943
P19
Q20667921
USER
Where was Alfred Almont born ?
(Q2834943,P19,c(Q20667921))
action filter_type
action find
entity Q2834943
relation P19
type Q20667921
['Q2834943', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q20667921 . resource:Q2834943 property:P19 ?h }
Alfred Almont
action filter_type
action find
entity Alfred Almont
relation place of birth
type type of french administrative division
['Alfred Almont', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:type_of_french_administrative_division . resource:Alfred_Almont property:place_of_birth ?h }
[]
type of french administrative division
Q617806
SYSTEM
Schœlcher
Q617806
(Q2834943,P19,c(Q20667921))
action filter_type
action find
entity Q2834943
relation P19
type Q20667921
Alfred Almont was born in [ANSWER]
['Q2834943', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q20667921 . resource:Q2834943 property:P19 ?h }
Schœlcher
Alfred Almont was born in Schœlcher
Schœlcher
action filter_type
action find
entity Alfred Almont
relation place of birth
type type of french administrative division
['Alfred Almont', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:type_of_french_administrative_division . resource:Alfred_Almont property:place_of_birth ?h }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q617806 Q1928049 Q81621
P47
Q20667921
USER
Is that french administrative division bordered by Case-Pilote and Fort-de-France ?
(Q617806,P47,Q1928049) (Q617806,P47,Q81621)
action is_in
entity Q617806
action intersection
action find_reverse
entity Q1928049
relation P47
action find_reverse
entity Q81621
relation P47
['Q617806', 'P47', 'Q1928049'] ['Q617806', 'P47', 'Q81621']
ASK WHERE { resource:Q617806 property:P47 resource:Q1928049 . resource:Q617806 property:P47 resource:Q81621 }
Schœlcher Case-Pilote Fort-de-France
action is_in
entity Schœlcher
action intersection
action find_reverse
entity Case-Pilote
relation shares border with
action find_reverse
entity Fort-de-France
relation shares border with
['Schœlcher', 'shares border with', 'Case-Pilote'] ['Schœlcher', 'shares border with', 'Fort-de-France']
ASK WHERE { resource:Schœlcher property:shares_border_with resource:Case-Pilote . resource:Schœlcher property:shares_border_with resource:Fort-de-France }
[]
type of french administrative division
SYSTEM
YES
(Q617806,P47,Q1928049) (Q617806,P47,Q81621)
action is_in
entity Q617806
action intersection
action find_reverse
entity Q1928049
relation P47
action find_reverse
entity Q81621
relation P47
[ANSWER]
['Q617806', 'P47', 'Q1928049'] ['Q617806', 'P47', 'Q81621']
ASK WHERE { resource:Q617806 property:P47 resource:Q1928049 . resource:Q617806 property:P47 resource:Q81621 }
Yes
action is_in
entity Schœlcher
action intersection
action find_reverse
entity Case-Pilote
relation shares border with
action find_reverse
entity Fort-de-France
relation shares border with
['Schœlcher', 'shares border with', 'Case-Pilote'] ['Schœlcher', 'shares border with', 'Fort-de-France']
ASK WHERE { resource:Schœlcher property:shares_border_with resource:Case-Pilote . resource:Schœlcher property:shares_border_with resource:Fort-de-France }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19517668 Q2834943
P39 P106
Q12737077
USER
Which occupations were a position held by Alfred Almont or do Charles Wardle do for a living ?
OR((Q2834943,P39,c(Q12737077)), (Q19517668,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q2834943
relation P39
action find
entity Q19517668
relation P106
type Q12737077
{'OR': [['Q2834943', 'P39', {'concept': 'Q12737077'}], ['Q19517668', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q2834943 property:P39 ?i } UNION { resource:Q19517668 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
Charles Wardle Alfred Almont
action filter_type
action union
action find
entity Alfred Almont
relation position held
action find
entity Charles Wardle
relation occupation
type occupation
{'OR': [['Alfred Almont', 'position held', {'concept': 'occupation'}], ['Charles Wardle', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Alfred_Almont property:position_held ?i } UNION { resource:Charles_Wardle property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]
occupation
Q3780304 Q382617 Q12299841 Q3044918
SYSTEM
Member of the General Council, maire, cricketer, member of the French National Assembly
Q3780304 Q382617 Q12299841 Q3044918
OR((Q2834943,P39,c(Q12737077)), (Q19517668,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q2834943
relation P39
action find
entity Q19517668
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q2834943', 'P39', {'concept': 'Q12737077'}], ['Q19517668', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q2834943 property:P39 ?i } UNION { resource:Q19517668 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
Member of the General Council maire cricketer member of the French National Assembly
The Member of the General Council, maire, cricketer and member of the French National Assembly were a position held by Alfred Almont or do Charles Wardle do for a living
Member of the General Council maire cricketer member of the French National Assembly
action filter_type
action union
action find
entity Alfred Almont
relation position held
action find
entity Charles Wardle
relation occupation
type occupation
{'OR': [['Alfred Almont', 'position held', {'concept': 'occupation'}], ['Charles Wardle', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Alfred_Almont property:position_held ?i } UNION { resource:Charles_Wardle property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q29
P495
Q15617994 Q15416 Q838948
USER
How many administrative territories are the origins of less number of television programs or works of art than Spain ?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) ?o WHERE { { ?q property:P495 ?o . ?o rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P495 ?o . ?o rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15416 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P495 resource:Q29 . { { ?l rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q15416 } } } } . FILTER ( ?d < ?i ) }
Spain
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) ?o WHERE { { ?q property:country_of_origin ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:work_of_art } UNION { ?q property:country_of_origin ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:television_program } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:country_of_origin resource:Spain . { { ?l rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:television_program } } } } . FILTER ( ?d < ?i ) }
[]
designation for an administrative territorial entity television program work of art
SYSTEM
160
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q838948),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q15416
type Q838948
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) ?o WHERE { { ?q property:P495 ?o . ?o rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P495 ?o . ?o rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15416 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P495 resource:Q29 . { { ?l rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q15416 } } } } . FILTER ( ?d < ?i ) }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
160
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) ?o WHERE { { ?q property:country_of_origin ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:work_of_art } UNION { ?q property:country_of_origin ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:television_program } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:country_of_origin resource:Spain . { { ?l rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:television_program } } } } . FILTER ( ?d < ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1016
P495
Q15617994 Q15416 Q838948
USER
And how about Libya?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1016
relation P495
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?v WHERE { { ?w property:P495 ?v . ?v rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15416 } UNION { ?w property:P495 ?v . ?w rdf:type ontology:Q838948 . ?v rdf:type ontology:Q15617994 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:P495 resource:Q1016 . { VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?y rdf:type ?c } } } . FILTER ( ?p < ?k ) }
Libya
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Libya
relation country of origin
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?v WHERE { { ?w property:country_of_origin ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:television_program } UNION { ?w property:country_of_origin ?v . ?w rdf:type ontology:work_of_art . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:country_of_origin resource:Libya . { VALUES ( ?c ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?y rdf:type ?c } } } . FILTER ( ?p < ?k ) }
[]
designation for an administrative territorial entity television program work of art
SYSTEM
37
Q1462 Q12536 Q36678 Q1460 Q792 Q4628 Q958 Q986 Q242 Q244 Q153136 Q983 Q29999 Q730 Q1013 Q159626 Q238 Q1045 Q1044 Q1025 Q1020 Q347 Q1030 Q967 Q962 Q963 Q1007 Q1006 Q1005 Q971 Q970 Q239502 Q686 Q1014 Q672 Q176 Q953
(c(Q15416)|c(Q838948),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1016
relation P495
type Q15416
type Q838948
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?v WHERE { { ?w property:P495 ?v . ?v rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15416 } UNION { ?w property:P495 ?v . ?w rdf:type ontology:Q838948 . ?v rdf:type ontology:Q15617994 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:P495 resource:Q1016 . { VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?y rdf:type ?c } } } . FILTER ( ?p < ?k ) }
Sardinia Abbasid caliphate West Bank Sicily El Salvador Faroe Islands South Sudan Eritrea Belize Barbados Habsburg Empire Equatorial Guinea Kingdom of the Netherlands Suriname Lesotho Württemberg San Marino Somalia Sierra Leone Mauritania Malawi Liechtenstein Namibia Burundi Benin Botswana Guinea-Bissau Guinea Gambia Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Liberia Tuvalu Quebec Zambia
37
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Libya
relation country of origin
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?v WHERE { { ?w property:country_of_origin ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:television_program } UNION { ?w property:country_of_origin ?v . ?w rdf:type ontology:work_of_art . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { ?y property:country_of_origin resource:Libya . { VALUES ( ?c ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?y rdf:type ?c } } } . FILTER ( ?p < ?k ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1016
P463
Q874405
USER
Which social group had that administrative territory as its member ?
action filter_type
action find
entity Q1016
relation P463
type Q874405
SELECT DISTINCT ?r WHERE { resource:Q1016 property:P463 ?r . ?r rdf:type ontology:Q874405 }
Libya
action filter_type
action find
entity Libya
relation member of
type social group
SELECT DISTINCT ?r WHERE { resource:Libya property:member_of ?r . ?r rdf:type ontology:social_group }
[]
social group
Q47543
SYSTEM
Organisation of Islamic Cooperation
Q47543
action filter_type
action find
entity Q1016
relation P463
type Q874405
[ANSWER] had that administrative territory as its member
SELECT DISTINCT ?r WHERE { resource:Q1016 property:P463 ?r . ?r rdf:type ontology:Q874405 }
Organisation of Islamic Cooperation
Organisation of Islamic Cooperation had that administrative territory as its member
Organisation of Islamic Cooperation
action filter_type
action find
entity Libya
relation member of
type social group
SELECT DISTINCT ?r WHERE { resource:Libya property:member_of ?r . ?r rdf:type ontology:social_group }
[]