Simple Question (Direct)
Simple Question
Q16943372
P180
Q15619164
USER
Which abstract being is expressed in The Abduction of Europa ?
(Q16943372,P180,c(Q15619164))
action filter_type
action find
entity Q16943372
relation P180
type Q15619164
['Q16943372', 'P180', {'concept': 'Q15619164'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15619164 . resource:Q16943372 property:P180 ?s }
The Abduction of Europa
action filter_type
action find
entity The Abduction of Europa
relation depicts
type abstract being
['The Abduction of Europa', 'depicts', {'concept': 'abstract being'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:abstract_being . resource:The_Abduction_of_Europa property:depicts ?s }
[]
abstract being
Q165170
SYSTEM
Europa
Q165170
(Q16943372,P180,c(Q15619164))
action filter_type
action find
entity Q16943372
relation P180
type Q15619164
The [ANSWER] is expressed in The Abduction of [ANSWER]
['Q16943372', 'P180', {'concept': 'Q15619164'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15619164 . resource:Q16943372 property:P180 ?s }
Europa
The Europa is expressed in The Abduction of Europa
Europa
action filter_type
action find
entity The Abduction of Europa
relation depicts
type abstract being
['The Abduction of Europa', 'depicts', {'concept': 'abstract being'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:abstract_being . resource:The_Abduction_of_Europa property:depicts ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q165170
P138
Q2221906
USER
Which geographic location comes from that abstract being ?
(c(Q2221906),P138,Q165170)
action filter_type
action find_reverse
entity Q165170
relation P138
type Q2221906
[{'concept': 'Q2221906'}, 'P138', 'Q165170']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q165170 . ?g rdf:type ontology:Q2221906 }
Europa
action filter_type
action find_reverse
entity Europa
relation named after
type geographic location
[{'concept': 'geographic location'}, 'named after', 'Europa']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:Europa . ?g rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(c(Q2221906),P138,Q165170)
action filter_type
action find_reverse
entity Q165170
relation P138
type Q2221906
[ANSWER] comes from that abstract being
[{'concept': 'Q2221906'}, 'P138', 'Q165170']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q165170 . ?g rdf:type ontology:Q2221906 }
Europe
Europe comes from that abstract being
Europe
action filter_type
action find_reverse
entity Europa
relation named after
type geographic location
[{'concept': 'geographic location'}, 'named after', 'Europa']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:Europa . ?g rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q46
P361
Q2221906
USER
Which geographic location is that one a component of ?
(Q46,P361,c(Q2221906))
action filter_type
action find
entity Q46
relation P361
type Q2221906
['Q46', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?m WHERE { resource:Q46 property:P361 ?m . ?m rdf:type ontology:Q2221906 }
Europe
action filter_type
action find
entity Europe
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?m WHERE { resource:Europe property:part_of ?m . ?m rdf:type ontology:geographic_location }
[]
geographic location
Q5401
SYSTEM
Eurasia
Q5401
(Q46,P361,c(Q2221906))
action filter_type
action find
entity Q46
relation P361
type Q2221906
The [ANSWER] is that one a component of
['Q46', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?m WHERE { resource:Q46 property:P361 ?m . ?m rdf:type ontology:Q2221906 }
Eurasia
The Eurasia is that one a component of
Eurasia
action filter_type
action find
entity Europe
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?m WHERE { resource:Europe property:part_of ?m . ?m rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6803534
Q2221906
USER
And also tell me about Meall na Teanga?
(Q6803534,P361,c(Q2221906))
action filter_type
action find
entity Q6803534
relation P361
type Q2221906
['Q6803534', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?r WHERE { resource:Q6803534 property:P361 ?r . ?r rdf:type ontology:Q2221906 }
Meall na Teanga
action filter_type
action find
entity Meall na Teanga
relation part of
type geographic location
['Meall na Teanga', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?r WHERE { resource:Meall_na_Teanga property:part_of ?r . ?r rdf:type ontology:geographic_location }
[]
geographic location
Q1084560
SYSTEM
Northwest Highlands
Q1084560
(Q6803534,P361,c(Q2221906))
action filter_type
action find
entity Q6803534
relation P361
type Q2221906
[ANSWER]
['Q6803534', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?r WHERE { resource:Q6803534 property:P361 ?r . ?r rdf:type ontology:Q2221906 }
Northwest Highlands
Northwest Highlands
action filter_type
action find
entity Meall na Teanga
relation part of
type geographic location
['Meall na Teanga', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?r WHERE { resource:Meall_na_Teanga property:part_of ?r . ?r rdf:type ontology:geographic_location }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q92640 Q46
P138 P674
Q15619164
USER
Which abstract beings are the etymology of Europe or plays a role in Alice's Adventures in Wonderland ?
OR((Q46,P138,c(Q15619164)), (Q92640,P674,c(Q15619164)))
action filter_type
action union
action find
entity Q46
relation P138
action find
entity Q92640
relation P674
type Q15619164
{'OR': [['Q46', 'P138', {'concept': 'Q15619164'}], ['Q92640', 'P674', {'concept': 'Q15619164'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15619164 . { { resource:Q46 property:P138 ?e } UNION { resource:Q92640 property:P674 ?e } } }
Alice's Adventures in Wonderland Europe
action filter_type
action union
action find
entity Europe
relation named after
action find
entity Alice's Adventures in Wonderland
relation characters
type abstract being
{'OR': [['Europe', 'named after', {'concept': 'abstract being'}], ["Alice's Adventures in Wonderland", 'characters', {'concept': 'abstract being'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:abstract_being . { { resource:Europe property:named_after ?e } UNION { resource:Alice's_Adventures_in_Wonderland property:characters ?e } } }
[]
abstract being
Q2587090 Q165170 Q2668352 Q178776 Q1282345 Q5238309 Q6412246 Q950895 Q2325524
SYSTEM
March Hare, Europa, Mock Turtle, White Rabbit, Caterpillar, Knave of Hearts, King of Hearts, Dormouse, Dodo
Q2587090 Q165170 Q2668352 Q178776 Q1282345 Q5238309 Q6412246 Q950895 Q2325524
OR((Q46,P138,c(Q15619164)), (Q92640,P674,c(Q15619164)))
action filter_type
action union
action find
entity Q46
relation P138
action find
entity Q92640
relation P674
type Q15619164
[ANSWERS] are the etymology of Europe or plays a role in Alice's Adventures in Wonderland
{'OR': [['Q46', 'P138', {'concept': 'Q15619164'}], ['Q92640', 'P674', {'concept': 'Q15619164'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15619164 . { { resource:Q46 property:P138 ?e } UNION { resource:Q92640 property:P674 ?e } } }
March Hare Europa Mock Turtle White Rabbit Caterpillar Knave of Hearts King of Hearts Dormouse Dodo
March Hare, Europa, Mock Turtle, White Rabbit, Caterpillar, Knave of Hearts, King of Hearts, Dormouse and Dodo are the etymology of Europe or plays a role in Alice's Adventures in Wonderland
March Hare Europa Mock Turtle White Rabbit Caterpillar Knave of Hearts King of Hearts Dormouse Dodo
action filter_type
action union
action find
entity Europe
relation named after
action find
entity Alice's Adventures in Wonderland
relation characters
type abstract being
{'OR': [['Europe', 'named after', {'concept': 'abstract being'}], ["Alice's Adventures in Wonderland", 'characters', {'concept': 'abstract being'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:abstract_being . { { resource:Europe property:named_after ?e } UNION { resource:Alice's_Adventures_in_Wonderland property:characters ?e } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q15619164 Q18783400 Q15709879
USER
Which abstract beings are expressed in max number of genres of sculpture or artwork series ?
(c(Q18783400)|c(Q15709879),P180,c(Q15619164))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q15619164
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q15619164
type Q15709879
[[{'concept': 'Q18783400'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q15619164'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) ?s WHERE { { ?i rdf:type ontology:Q18783400 . ?s rdf:type ontology:Q15619164 . ?i property:P180 ?s } UNION { ?s rdf:type ontology:Q15619164 . ?i rdf:type ontology:Q15709879 . ?i property:P180 ?s } } GROUP BY ?s } } . FILTER ( ?r = ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?x WHERE { { ?k property:P180 ?x . ?x rdf:type ontology:Q15619164 . ?k rdf:type ontology:Q15709879 } UNION { ?k property:P180 ?x . ?x rdf:type ontology:Q15619164 . ?k rdf:type ontology:Q18783400 } } GROUP BY ?x } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type abstract being
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type abstract being
type artwork series
[[{'concept': 'genre of sculpture'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'abstract being'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) ?s WHERE { { ?i rdf:type ontology:genre_of_sculpture . ?s rdf:type ontology:abstract_being . ?i property:depicts ?s } UNION { ?s rdf:type ontology:abstract_being . ?i rdf:type ontology:artwork_series . ?i property:depicts ?s } } GROUP BY ?s } } . FILTER ( ?r = ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?x WHERE { { ?k property:depicts ?x . ?x rdf:type ontology:abstract_being . ?k rdf:type ontology:artwork_series } UNION { ?k property:depicts ?x . ?x rdf:type ontology:abstract_being . ?k rdf:type ontology:genre_of_sculpture } } GROUP BY ?x } }
[]
abstract being genre of sculpture artwork series
Q302
SYSTEM
Jesus Christ
Q302
(c(Q18783400)|c(Q15709879),P180,c(Q15619164))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q15619164
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q15619164
type Q15709879
[ANSWER] is expressed in max number of genres of sculpture or artwork series
[[{'concept': 'Q18783400'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q15619164'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) ?s WHERE { { ?i rdf:type ontology:Q18783400 . ?s rdf:type ontology:Q15619164 . ?i property:P180 ?s } UNION { ?s rdf:type ontology:Q15619164 . ?i rdf:type ontology:Q15709879 . ?i property:P180 ?s } } GROUP BY ?s } } . FILTER ( ?r = ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?x WHERE { { ?k property:P180 ?x . ?x rdf:type ontology:Q15619164 . ?k rdf:type ontology:Q15709879 } UNION { ?k property:P180 ?x . ?x rdf:type ontology:Q15619164 . ?k rdf:type ontology:Q18783400 } } GROUP BY ?x } }
Jesus Christ
Jesus Christ is expressed in max number of genres of sculpture or artwork series
Jesus Christ
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type abstract being
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type abstract being
type artwork series
[[{'concept': 'genre of sculpture'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'abstract being'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) ?s WHERE { { ?i rdf:type ontology:genre_of_sculpture . ?s rdf:type ontology:abstract_being . ?i property:depicts ?s } UNION { ?s rdf:type ontology:abstract_being . ?i rdf:type ontology:artwork_series . ?i property:depicts ?s } } GROUP BY ?s } } . FILTER ( ?r = ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?x WHERE { { ?k property:depicts ?x . ?x rdf:type ontology:abstract_being . ?k rdf:type ontology:artwork_series } UNION { ?k property:depicts ?x . ?x rdf:type ontology:abstract_being . ?k rdf:type ontology:genre_of_sculpture } } GROUP BY ?x } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q155 Q5401
P530 P30
Q15617994
USER
Which administrative territories are located in Eurasia and are known to have diplomatic connections with Brazil ?
AND((c(Q15617994),P30,Q5401), (c(Q15617994),P530,Q155))
action filter_type
action intersection
action find_reverse
entity Q5401
relation P30
action find_reverse
entity Q155
relation P530
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P30', 'Q5401'], [{'concept': 'Q15617994'}, 'P530', 'Q155']]}
SELECT DISTINCT ?c WHERE { ?c property:P30 resource:Q5401 . ?c property:P530 resource:Q155 . ?c rdf:type ontology:Q15617994 }
Brazil Eurasia
action filter_type
action intersection
action find_reverse
entity Eurasia
relation continent
action find_reverse
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'continent', 'Eurasia'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Brazil']]}
SELECT DISTINCT ?c WHERE { ?c property:continent resource:Eurasia . ?c property:diplomatic_relation resource:Brazil . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q230 Q159
SYSTEM
Georgia, Russia
Q230 Q159
AND((c(Q15617994),P30,Q5401), (c(Q15617994),P530,Q155))
action filter_type
action intersection
action find_reverse
entity Q5401
relation P30
action find_reverse
entity Q155
relation P530
type Q15617994
[ANSWERS] are located in Eurasia and are known to have diplomatic connections with Brazil
{'AND': [[{'concept': 'Q15617994'}, 'P30', 'Q5401'], [{'concept': 'Q15617994'}, 'P530', 'Q155']]}
SELECT DISTINCT ?c WHERE { ?c property:P30 resource:Q5401 . ?c property:P530 resource:Q155 . ?c rdf:type ontology:Q15617994 }
Georgia Russia
Georgia and Russia are located in Eurasia and are known to have diplomatic connections with Brazil
Georgia Russia
action filter_type
action intersection
action find_reverse
entity Eurasia
relation continent
action find_reverse
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'continent', 'Eurasia'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Brazil']]}
SELECT DISTINCT ?c WHERE { ?c property:continent resource:Eurasia . ?c property:diplomatic_relation resource:Brazil . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q15416
USER
Which administrative territories are the countries of origin of less number of literary works or television programs than that administrative territory ?
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?n ) { ( ?z ) ( ?x ) } . ?n property:P495 ?y } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?n ) { ( ?z ) ( ?x ) } . ?n property:country_of_origin ?y } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
designation for an administrative territorial entity literary work television program
Comparative|More/Less|Mult. entity type|Clarification
Q230
SYSTEM
Did you mean Georgia ?
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?n ) { ( ?z ) ( ?x ) } . ?n property:P495 ?y } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Did you mean Georgia ?
Georgia
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?n ) { ( ?z ) ( ?x ) } . ?n property:country_of_origin ?y } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q953 Q184 Q347
SYSTEM
Zambia, Belarus, Liechtenstein
Q805 Q804 Q800 Q1462 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q837 Q1460 Q398 Q657 Q792 Q790 Q4628 Q796 Q954 Q889 Q958 Q986 Q826 Q241 Q242 Q244 Q811 Q153136 Q924 Q423 Q983 Q851 Q733 Q29999 Q819 Q730 Q1013 Q159626 Q236 Q233 Q238 Q1045 Q1044 Q1041 Q921 Q1049 Q1025 Q1027 Q1020 Q184 Q1029 Q1028 Q786 Q227 Q223 Q221 Q229 Q347 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q962 Q963 Q115 Q754 Q750 Q211 Q217 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q77 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q953
(c(Q7725634)|c(Q15416),P495,c(Q15617994))
[ANSWERS] are the countries of origin of less number of literary works or television programs than that administrative territory
[[{'concept': 'Q7725634'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Yemen Panama Costa Rica Sardinia Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Nepal Sicily Bahrain Chad El Salvador Haiti Faroe Islands Iraq Zimbabwe Afghanistan South Sudan Eritrea Maldives Cuba Belize Barbados Nicaragua Habsburg Empire Tanzania North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Laos Suriname Lesotho Württemberg Montenegro Malta San Marino Somalia Sierra Leone Senegal Brunei Sudan Mauritania Mauritius Malawi Belarus Mozambique Morocco Dominican Republic Azerbaijan Greenland Republic of Macedonia Cyprus Liechtenstein Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Benin Botswana Ethiopia Trinidad and Tobago Bolivia Latvia Republic of Moldova Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Zambia
Zambia, Belarus and Liechtenstein are the countries of origin of less number of literary works or television programs than that administrative territory
Zambia Belarus Liechtenstein
[[{'concept': 'literary work'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P463
Q874405 Q43229
USER
How many social groups and organizations had that administrative territory as their member ?
(Q347,P463,c(Q874405)) (Q347,P463,c(Q43229)) (Q953,P463,c(Q874405)) (Q953,P463,c(Q43229)) (Q184,P463,c(Q874405)) (Q184,P463,c(Q43229)) (Q347,P463,c(Q874405)) (Q347,P463,c(Q43229))
['Q347', 'P463', {'concept': 'Q874405'}] ['Q347', 'P463', {'concept': 'Q43229'}] ['Q953', 'P463', {'concept': 'Q874405'}] ['Q953', 'P463', {'concept': 'Q43229'}] ['Q184', 'P463', {'concept': 'Q874405'}] ['Q184', 'P463', {'concept': 'Q43229'}] ['Q347', 'P463', {'concept': 'Q874405'}] ['Q347', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q237517 property:P463 ?z } UNION { resource:Q237517 property:P463 ?y } UNION { resource:Q953 property:P463 ?z } UNION { resource:Q953 property:P463 ?y } UNION { resource:Q3920722 property:P463 ?z } UNION { resource:Q3920722 property:P463 ?y } UNION { resource:Q237517 property:P463 ?z } UNION { resource:Q237517 property:P463 ?y } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q43229 }
['Liechtenstein', 'member of', {'concept': 'social group'}] ['Liechtenstein', 'member of', {'concept': 'organization'}] ['Zambia', 'member of', {'concept': 'social group'}] ['Zambia', 'member of', {'concept': 'organization'}] ['Belarus', 'member of', {'concept': 'social group'}] ['Belarus', 'member of', {'concept': 'organization'}] ['Liechtenstein', 'member of', {'concept': 'social group'}] ['Liechtenstein', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Liechtenstein property:member_of ?z } UNION { resource:Liechtenstein property:member_of ?y } UNION { resource:Zambia property:member_of ?z } UNION { resource:Zambia property:member_of ?y } UNION { resource:Belarus property:member_of ?z } UNION { resource:Belarus property:member_of ?y } UNION { resource:Liechtenstein property:member_of ?z } UNION { resource:Liechtenstein property:member_of ?y } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:organization }
[]
social group organization
Quantitative|Count|Mult. entity type|Clarification
Q953
SYSTEM
Did you mean Zambia ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q237517 property:P463 ?z } UNION { resource:Q237517 property:P463 ?y } UNION { resource:Q953 property:P463 ?z } UNION { resource:Q953 property:P463 ?y } UNION { resource:Q3920722 property:P463 ?z } UNION { resource:Q3920722 property:P463 ?y } UNION { resource:Q237517 property:P463 ?z } UNION { resource:Q237517 property:P463 ?y } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q43229 }
Did you mean Zambia ?
Zambia
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Liechtenstein property:member_of ?z } UNION { resource:Liechtenstein property:member_of ?y } UNION { resource:Zambia property:member_of ?z } UNION { resource:Zambia property:member_of ?y } UNION { resource:Belarus property:member_of ?z } UNION { resource:Belarus property:member_of ?y } UNION { resource:Liechtenstein property:member_of ?z } UNION { resource:Liechtenstein property:member_of ?y } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Liechtenstein. Could you tell me the answer for that?
(Q347,P463,c(Q874405)) (Q347,P463,c(Q43229)) (Q953,P463,c(Q874405)) (Q953,P463,c(Q43229)) (Q184,P463,c(Q874405)) (Q184,P463,c(Q43229)) (Q347,P463,c(Q874405)) (Q347,P463,c(Q43229))
Q347
['Q347', 'P463', {'concept': 'Q874405'}] ['Q347', 'P463', {'concept': 'Q43229'}] ['Q953', 'P463', {'concept': 'Q874405'}] ['Q953', 'P463', {'concept': 'Q43229'}] ['Q184', 'P463', {'concept': 'Q874405'}] ['Q184', 'P463', {'concept': 'Q43229'}] ['Q347', 'P463', {'concept': 'Q874405'}] ['Q347', 'P463', {'concept': 'Q43229'}]
['Liechtenstein', 'member of', {'concept': 'social group'}] ['Liechtenstein', 'member of', {'concept': 'organization'}] ['Zambia', 'member of', {'concept': 'social group'}] ['Zambia', 'member of', {'concept': 'organization'}] ['Belarus', 'member of', {'concept': 'social group'}] ['Belarus', 'member of', {'concept': 'organization'}] ['Liechtenstein', 'member of', {'concept': 'social group'}] ['Liechtenstein', 'member of', {'concept': 'organization'}]
[]
SYSTEM
5 social groups and 2 organizations
Q8932 Q41984 Q488981 Q376150 Q8908 Q7825 Q659012
(Q347,P463,c(Q874405)) (Q347,P463,c(Q43229)) (Q953,P463,c(Q874405)) (Q953,P463,c(Q43229)) (Q184,P463,c(Q874405)) (Q184,P463,c(Q43229)) (Q347,P463,c(Q874405)) (Q347,P463,c(Q43229))
[ANSWER]
['Q347', 'P463', {'concept': 'Q874405'}] ['Q347', 'P463', {'concept': 'Q43229'}] ['Q953', 'P463', {'concept': 'Q874405'}] ['Q953', 'P463', {'concept': 'Q43229'}] ['Q184', 'P463', {'concept': 'Q874405'}] ['Q184', 'P463', {'concept': 'Q43229'}] ['Q347', 'P463', {'concept': 'Q874405'}] ['Q347', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q237517 property:P463 ?z } UNION { resource:Q237517 property:P463 ?y } UNION { resource:Q953 property:P463 ?z } UNION { resource:Q953 property:P463 ?y } UNION { resource:Q3920722 property:P463 ?z } UNION { resource:Q3920722 property:P463 ?y } UNION { resource:Q237517 property:P463 ?z } UNION { resource:Q237517 property:P463 ?y } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q43229 }
European Economic Area International Atomic Energy Agency European Bank for Reconstruction and Development International Telecommunication Union Council of Europe World Trade Organization United Nations Economic Commission for Europe
5 social groups and 2 organizations
['Liechtenstein', 'member of', {'concept': 'social group'}] ['Liechtenstein', 'member of', {'concept': 'organization'}] ['Zambia', 'member of', {'concept': 'social group'}] ['Zambia', 'member of', {'concept': 'organization'}] ['Belarus', 'member of', {'concept': 'social group'}] ['Belarus', 'member of', {'concept': 'organization'}] ['Liechtenstein', 'member of', {'concept': 'social group'}] ['Liechtenstein', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Liechtenstein property:member_of ?z } UNION { resource:Liechtenstein property:member_of ?y } UNION { resource:Zambia property:member_of ?z } UNION { resource:Zambia property:member_of ?y } UNION { resource:Belarus property:member_of ?z } UNION { resource:Belarus property:member_of ?y } UNION { resource:Liechtenstein property:member_of ?z } UNION { resource:Liechtenstein property:member_of ?y } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q159 Q846
P530
Q1048835
USER
How many political territories are known to have diplomatic connections with Russia and Qatar ?
(c(Q1048835),P530,Q159) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q159
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q159'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:P530 resource:Q159 . ?i rdf:type ontology:Q1048835 . ?i property:P530 resource:Q846 . ?i rdf:type ontology:Q1048835 }
Russia Qatar
action count
action intersection
action filter_type
action find_reverse
entity Russia
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Russia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:diplomatic_relation resource:Russia . ?i rdf:type ontology:political_territorial_entity . ?i property:diplomatic_relation resource:Qatar . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q16
(c(Q1048835),P530,Q159) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q159
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q159'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:P530 resource:Q159 . ?i rdf:type ontology:Q1048835 . ?i property:P530 resource:Q846 . ?i rdf:type ontology:Q1048835 }
Australia Canada
2
action count
action intersection
action filter_type
action find_reverse
entity Russia
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Russia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { ?i property:diplomatic_relation resource:Russia . ?i rdf:type ontology:political_territorial_entity . ?i property:diplomatic_relation resource:Qatar . ?i rdf:type ontology:political_territorial_entity }
[]