Simple Question (Direct)
Simple Question
Q5202356
P641
Q349
USER
What was the sport that Cássio Magalhaes Fernandes was a part of ?
(Q5202356,P641,c(Q349))
action filter_type
action find
entity Q5202356
relation P641
type Q349
['Q5202356', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q5202356 property:P641 ?m . ?m rdf:type ontology:Q349 }
Cássio Magalhaes Fernandes
action filter_type
action find
entity Cássio Magalhaes Fernandes
relation sport
type sport
['Cássio Magalhaes Fernandes', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Cássio_Magalhaes_Fernandes property:sport ?m . ?m rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5202356,P641,c(Q349))
action filter_type
action find
entity Q5202356
relation P641
type Q349
The sport that Cássio Magalhaes Fernandes was a part of was h [ANSWER]
['Q5202356', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q5202356 property:P641 ?m . ?m rdf:type ontology:Q349 }
association football
The sport that Cássio Magalhaes Fernandes was a part of was h association football
association football
action filter_type
action find
entity Cássio Magalhaes Fernandes
relation sport
type sport
['Cássio Magalhaes Fernandes', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Cássio_Magalhaes_Fernandes property:sport ?m . ?m rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5202356
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q5202356
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5202356 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Cássio Magalhaes Fernandes
action filter_type
action find
entity Cássio Magalhaes Fernandes
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Cássio_Magalhaes_Fernandes property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q5202356
relation P106
type Q12737077
Player [ANSWER] has that person as his/her 's career
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q5202356 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
association football player
Player association football player has that person as his/her 's career
association football player
action filter_type
action find
entity Cássio Magalhaes Fernandes
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Cássio_Magalhaes_Fernandes property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19872221 Q5202356
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Cássio Magalhaes Fernandes or Sir James Colquhoun, 3rd Baronet, of Luss ?
OR((Q5202356,P27,c(Q15617994)), (Q19872221,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5202356
relation P27
action find
entity Q19872221
relation P27
type Q15617994
{'OR': [['Q5202356', 'P27', {'concept': 'Q15617994'}], ['Q19872221', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5202356 property:P27 ?l } UNION { resource:Q19872221 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Sir James Colquhoun, 3rd Baronet, of Luss Cássio Magalhaes Fernandes
action filter_type
action union
action find
entity Cássio Magalhaes Fernandes
relation country of citizenship
action find
entity Sir James Colquhoun, 3rd Baronet, of Luss
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Cássio Magalhaes Fernandes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sir James Colquhoun, 3rd Baronet, of Luss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Cássio_Magalhaes_Fernandes property:country_of_citizenship ?l } UNION { resource:Sir_James_Colquhoun,_3rd_Baronet,_of_Luss property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q145
SYSTEM
Brazil, United Kingdom
Q155 Q145
OR((Q5202356,P27,c(Q15617994)), (Q19872221,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5202356
relation P27
action find
entity Q19872221
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Cássio Magalhaes Fernandes or Sir James Colquhoun, 3rd Baronet, of Luss
{'OR': [['Q5202356', 'P27', {'concept': 'Q15617994'}], ['Q19872221', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5202356 property:P27 ?l } UNION { resource:Q19872221 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Brazil United Kingdom
Brazil and United Kingdom are the countries of citizenship of Cássio Magalhaes Fernandes or Sir James Colquhoun, 3rd Baronet, of Luss
Brazil United Kingdom
action filter_type
action union
action find
entity Cássio Magalhaes Fernandes
relation country of citizenship
action find
entity Sir James Colquhoun, 3rd Baronet, of Luss
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Cássio Magalhaes Fernandes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sir James Colquhoun, 3rd Baronet, of Luss', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Cássio_Magalhaes_Fernandes property:country_of_citizenship ?l } UNION { resource:Sir_James_Colquhoun,_3rd_Baronet,_of_Luss property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6867760 Q5202356
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Cássio Magalhaes Fernandes or Minja Subota ?
OR((Q5202356,P27,c(Q15617994)), (Q6867760,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5202356
relation P27
action find
entity Q6867760
relation P27
type Q15617994
{'OR': [['Q5202356', 'P27', {'concept': 'Q15617994'}], ['Q6867760', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q5202356 property:P27 ?i } UNION { resource:Q6867760 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
Minja Subota Cássio Magalhaes Fernandes
action filter_type
action union
action find
entity Cássio Magalhaes Fernandes
relation country of citizenship
action find
entity Minja Subota
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Cássio Magalhaes Fernandes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Minja Subota', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Cássio_Magalhaes_Fernandes property:country_of_citizenship ?i } UNION { resource:Minja_Subota property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q403
SYSTEM
Brazil, Serbia
Q155 Q403
OR((Q5202356,P27,c(Q15617994)), (Q6867760,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5202356
relation P27
action find
entity Q6867760
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Cássio Magalhaes Fernandes or Minja Subota
{'OR': [['Q5202356', 'P27', {'concept': 'Q15617994'}], ['Q6867760', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q5202356 property:P27 ?i } UNION { resource:Q6867760 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
Brazil Serbia
Brazil and Serbia are the countries of citizenship of Cássio Magalhaes Fernandes or Minja Subota
Brazil Serbia
action filter_type
action union
action find
entity Cássio Magalhaes Fernandes
relation country of citizenship
action find
entity Minja Subota
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Cássio Magalhaes Fernandes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Minja Subota', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Cássio_Magalhaes_Fernandes property:country_of_citizenship ?i } UNION { resource:Minja_Subota property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1001
Q2712963 Q192350
USER
How many abstract nouns and ministries apply to jurisdiction over that administrative territory ?
(c(Q2712963),P1001,Q403) (c(Q192350),P1001,Q403) (c(Q2712963),P1001,Q155) (c(Q192350),P1001,Q155) (c(Q2712963),P1001,Q403) (c(Q192350),P1001,Q403)
[{'concept': 'Q2712963'}, 'P1001', 'Q403'] [{'concept': 'Q192350'}, 'P1001', 'Q403'] [{'concept': 'Q2712963'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q2712963'}, 'P1001', 'Q403'] [{'concept': 'Q192350'}, 'P1001', 'Q403']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q403 } UNION { ?y property:P1001 resource:Q403 } UNION { ?z property:P1001 resource:Q21475816 } UNION { ?y property:P1001 resource:Q21475816 } UNION { ?z property:P1001 resource:Q403 } UNION { ?y property:P1001 resource:Q403 } } . ?z rdf:type ontology:Q2712963 . ?y rdf:type ontology:Q192350 }
[{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Serbia'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Serbia'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Serbia'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Serbia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Serbia } UNION { ?y property:applies_to_jurisdiction resource:Serbia } UNION { ?z property:applies_to_jurisdiction resource:Brazil } UNION { ?y property:applies_to_jurisdiction resource:Brazil } UNION { ?z property:applies_to_jurisdiction resource:Serbia } UNION { ?y property:applies_to_jurisdiction resource:Serbia } } . ?z rdf:type ontology:abstract_noun . ?y rdf:type ontology:ministry }
[]
abstract noun ministry
Quantitative|Count|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q403 } UNION { ?y property:P1001 resource:Q403 } UNION { ?z property:P1001 resource:Q21475816 } UNION { ?y property:P1001 resource:Q21475816 } UNION { ?z property:P1001 resource:Q403 } UNION { ?y property:P1001 resource:Q403 } } . ?z rdf:type ontology:Q2712963 . ?y rdf:type ontology:Q192350 }
Did you mean Brazil ?
Brazil
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Serbia } UNION { ?y property:applies_to_jurisdiction resource:Serbia } UNION { ?z property:applies_to_jurisdiction resource:Brazil } UNION { ?y property:applies_to_jurisdiction resource:Brazil } UNION { ?z property:applies_to_jurisdiction resource:Serbia } UNION { ?y property:applies_to_jurisdiction resource:Serbia } } . ?z rdf:type ontology:abstract_noun . ?y rdf:type ontology:ministry }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Serbia. Could you tell me the answer for that?
(c(Q2712963),P1001,Q403) (c(Q192350),P1001,Q403) (c(Q2712963),P1001,Q155) (c(Q192350),P1001,Q155) (c(Q2712963),P1001,Q403) (c(Q192350),P1001,Q403)
Q403
[{'concept': 'Q2712963'}, 'P1001', 'Q403'] [{'concept': 'Q192350'}, 'P1001', 'Q403'] [{'concept': 'Q2712963'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q2712963'}, 'P1001', 'Q403'] [{'concept': 'Q192350'}, 'P1001', 'Q403']
[{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Serbia'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Serbia'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Serbia'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Serbia']
[]
SYSTEM
1 abstract nouns and 2 ministries
Q16010182 Q149789 Q2198916
(c(Q2712963),P1001,Q403) (c(Q192350),P1001,Q403) (c(Q2712963),P1001,Q155) (c(Q192350),P1001,Q155) (c(Q2712963),P1001,Q403) (c(Q192350),P1001,Q403)
[ANSWER]
[{'concept': 'Q2712963'}, 'P1001', 'Q403'] [{'concept': 'Q192350'}, 'P1001', 'Q403'] [{'concept': 'Q2712963'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q2712963'}, 'P1001', 'Q403'] [{'concept': 'Q192350'}, 'P1001', 'Q403']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q403 } UNION { ?y property:P1001 resource:Q403 } UNION { ?z property:P1001 resource:Q21475816 } UNION { ?y property:P1001 resource:Q21475816 } UNION { ?z property:P1001 resource:Q403 } UNION { ?y property:P1001 resource:Q403 } } . ?z rdf:type ontology:Q2712963 . ?y rdf:type ontology:Q192350 }
Ministry of Agriculture limited liability company Ministry of Foreign Affairs of the Republic of Serbia
1 abstract nouns and 2 ministries
[{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Serbia'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Serbia'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Serbia'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Serbia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Serbia } UNION { ?y property:applies_to_jurisdiction resource:Serbia } UNION { ?z property:applies_to_jurisdiction resource:Brazil } UNION { ?y property:applies_to_jurisdiction resource:Brazil } UNION { ?z property:applies_to_jurisdiction resource:Serbia } UNION { ?y property:applies_to_jurisdiction resource:Serbia } } . ?z rdf:type ontology:abstract_noun . ?y rdf:type ontology:ministry }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2557960 Q403
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Serbia and are 1937 Welsh International Badminton Championships a part of ?
AND((Q403,P530,c(Q15617994)), (Q2557960,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q403
relation P530
action find
entity Q2557960
relation P17
type Q15617994
{'AND': [['Q403', 'P530', {'concept': 'Q15617994'}], ['Q2557960', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q2557960 property:P17 ?z . resource:Q403 property:P530 ?z }
1937 Welsh International Badminton Championships Serbia
action filter_type
action intersection
action find
entity Serbia
relation diplomatic relation
action find
entity 1937 Welsh International Badminton Championships
relation country
type designation for an administrative territorial entity
{'AND': [['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['1937 Welsh International Badminton Championships', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:1937_Welsh_International_Badminton_Championships property:country ?z . resource:Serbia property:diplomatic_relation ?z }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q403,P530,c(Q15617994)), (Q2557960,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q403
relation P530
action find
entity Q2557960
relation P17
type Q15617994
[ANSWER] have diplomatic relationships with Serbia and are 1937 Welsh International Badminton Championships a part of
{'AND': [['Q403', 'P530', {'concept': 'Q15617994'}], ['Q2557960', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q2557960 property:P17 ?z . resource:Q403 property:P530 ?z }
United Kingdom
United Kingdom have diplomatic relationships with Serbia and are 1937 Welsh International Badminton Championships a part of
United Kingdom
action filter_type
action intersection
action find
entity Serbia
relation diplomatic relation
action find
entity 1937 Welsh International Badminton Championships
relation country
type designation for an administrative territorial entity
{'AND': [['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['1937 Welsh International Badminton Championships', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:1937_Welsh_International_Badminton_Championships property:country ?z . resource:Serbia property:diplomatic_relation ?z }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q145 Q9682 Q4758051
P35
Q502895
USER
Does that administrative territory have Elizabeth II and Andrew Montford as its chief of state ?
(Q145,P35,Q9682) (Q145,P35,Q4758051)
action is_in
entity Q145
action intersection
action find_reverse
entity Q9682
relation P35
action find_reverse
entity Q4758051
relation P35
['Q145', 'P35', 'Q9682'] ['Q145', 'P35', 'Q4758051']
ASK WHERE { resource:Q145 property:P35 resource:Q9682 . resource:Q145 property:P35 resource:Q4758051 }
United Kingdom Elizabeth II Andrew Montford
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Elizabeth II
relation head of state
action find_reverse
entity Andrew Montford
relation head of state
['United Kingdom', 'head of state', 'Elizabeth II'] ['United Kingdom', 'head of state', 'Andrew Montford']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:Elizabeth_II . resource:United_Kingdom property:head_of_state resource:Andrew_Montford }
[]
common name
SYSTEM
YES and NO respectively
(Q145,P35,Q9682) (Q145,P35,Q4758051)
action is_in
entity Q145
action intersection
action find_reverse
entity Q9682
relation P35
action find_reverse
entity Q4758051
relation P35
[ANSWER]
['Q145', 'P35', 'Q9682'] ['Q145', 'P35', 'Q4758051']
ASK WHERE { resource:Q145 property:P35 resource:Q9682 . resource:Q145 property:P35 resource:Q4758051 }
YES and NO respectively
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Elizabeth II
relation head of state
action find_reverse
entity Andrew Montford
relation head of state
['United Kingdom', 'head of state', 'Elizabeth II'] ['United Kingdom', 'head of state', 'Andrew Montford']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:Elizabeth_II . resource:United_Kingdom property:head_of_state resource:Andrew_Montford }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q858
P495
Q15617994 Q838948 Q2342494
USER
Which administrative territories are the origin of lesser number of works of art and collectables than Syria ?
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q858
relation P495
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:P495 resource:Q858 . { ?u rdf:type ?m . VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?g < ?n ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?w WHERE { { ?a property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q838948 } UNION { ?a property:P495 ?w . ?a rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?w } }
Syria
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Syria
relation country of origin
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:country_of_origin resource:Syria . { ?u rdf:type ?m . VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:collectable ) } } } } . FILTER ( ?g < ?n ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?w WHERE { { ?a property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:work_of_art } UNION { ?a property:country_of_origin ?w . ?a rdf:type ontology:collectable . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?w } }
[]
designation for an administrative territorial entity work of art collectable
Q953 Q184 Q347
SYSTEM
Zambia, Belarus, Liechtenstein
Q805 Q804 Q800 Q1462 Q12536 Q783 Q265 Q36678 Q712 Q711 Q1460 Q398 Q657 Q792 Q790 Q4628 Q796 Q954 Q889 Q958 Q986 Q826 Q242 Q244 Q811 Q153136 Q924 Q423 Q983 Q851 Q733 Q29999 Q819 Q730 Q1013 Q159626 Q236 Q233 Q238 Q1045 Q1044 Q921 Q1049 Q1025 Q1027 Q1020 Q184 Q1029 Q736 Q786 Q227 Q223 Q221 Q229 Q347 Q1036 Q1037 Q974 Q1032 Q1030 Q967 Q962 Q963 Q115 Q117 Q754 Q750 Q211 Q217 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q574 Q874 Q878 Q774 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q953
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q858
relation P495
type Q838948
type Q2342494
[ANSWERS] are the origin of lesser number of works of art and collectables than Syria
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:P495 resource:Q858 . { ?u rdf:type ?m . VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?g < ?n ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?w WHERE { { ?a property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q838948 } UNION { ?a property:P495 ?w . ?a rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?w } }
Yemen Panama Costa Rica Sardinia Abbasid caliphate Honduras Uzbekistan West Bank Fiji Mongolia Sicily Bahrain Chad El Salvador Haiti Faroe Islands Iraq Zimbabwe Afghanistan South Sudan Eritrea Maldives 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 Brunei Sudan Mauritania Mauritius Malawi Belarus Mozambique Ecuador Dominican Republic Azerbaijan Greenland Republic of Macedonia Cyprus Liechtenstein Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burundi Benin Botswana Ethiopia Ghana 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 East Timor Turkmenistan United Arab Emirates Guatemala Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Zambia
Zambia, Belarus and Liechtenstein are the origin of lesser number of works of art and collectables than Syria
Zambia Belarus Liechtenstein
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Syria
relation country of origin
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:country_of_origin resource:Syria . { ?u rdf:type ?m . VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:collectable ) } } } } . FILTER ( ?g < ?n ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?w WHERE { { ?a property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:work_of_art } UNION { ?a property:country_of_origin ?w . ?a rdf:type ontology:collectable . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?w } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7837954
P530
Q15617994
USER
Are Trekenning known to have diplomatic connections with those ones ?
(Q7837954,P530,Q953) (Q7837954,P530,Q184) (Q7837954,P530,Q347)
action is_in
entity prev_answer
action find
entity Q7837954
relation P530
['Q7837954', 'P530', 'Q953'] ['Q7837954', 'P530', 'Q184'] ['Q7837954', 'P530', 'Q347']
ASK WHERE { resource:Q7837954 property:P530 ?p . VALUES ( ?p ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q800 ) } }
Trekenning
action is_in
entity prev_answer
action find
entity Trekenning
relation diplomatic relation
['Trekenning', 'diplomatic relation', 'Zambia'] ['Trekenning', 'diplomatic relation', 'Belarus'] ['Trekenning', 'diplomatic relation', 'Liechtenstein']
ASK WHERE { resource:Trekenning property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Costa_Rica ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q7837954,P530,Q953) (Q7837954,P530,Q184) (Q7837954,P530,Q347)
action is_in
entity prev_answer
action find
entity Q7837954
relation P530
[ANSWER]
['Q7837954', 'P530', 'Q953'] ['Q7837954', 'P530', 'Q184'] ['Q7837954', 'P530', 'Q347']
ASK WHERE { resource:Q7837954 property:P530 ?p . VALUES ( ?p ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q800 ) } }
No
action is_in
entity prev_answer
action find
entity Trekenning
relation diplomatic relation
['Trekenning', 'diplomatic relation', 'Zambia'] ['Trekenning', 'diplomatic relation', 'Belarus'] ['Trekenning', 'diplomatic relation', 'Liechtenstein']
ASK WHERE { resource:Trekenning property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Costa_Rica ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q953 Q688075 Q7094385
P530
Q15617994
USER
Does Zambia have tactful political relations with Gaishorn am See and Onneley ?
(Q953,P530,Q688075) (Q953,P530,Q7094385)
action is_in
entity Q953
action intersection
action find_reverse
entity Q688075
relation P530
action find_reverse
entity Q7094385
relation P530
['Q953', 'P530', 'Q688075'] ['Q953', 'P530', 'Q7094385']
ASK WHERE { resource:Q953 property:P530 resource:Q688075 . resource:Q953 property:P530 resource:Q7094385 }
Zambia Gaishorn am See Onneley
action is_in
entity Zambia
action intersection
action find_reverse
entity Gaishorn am See
relation diplomatic relation
action find_reverse
entity Onneley
relation diplomatic relation
['Zambia', 'diplomatic relation', 'Gaishorn am See'] ['Zambia', 'diplomatic relation', 'Onneley']
ASK WHERE { resource:Zambia property:diplomatic_relation resource:Gaishorn_am_See . resource:Zambia property:diplomatic_relation resource:Onneley }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q953,P530,Q688075) (Q953,P530,Q7094385)
action is_in
entity Q953
action intersection
action find_reverse
entity Q688075
relation P530
action find_reverse
entity Q7094385
relation P530
[ANSWER]
['Q953', 'P530', 'Q688075'] ['Q953', 'P530', 'Q7094385']
ASK WHERE { resource:Q953 property:P530 resource:Q688075 . resource:Q953 property:P530 resource:Q7094385 }
No
action is_in
entity Zambia
action intersection
action find_reverse
entity Gaishorn am See
relation diplomatic relation
action find_reverse
entity Onneley
relation diplomatic relation
['Zambia', 'diplomatic relation', 'Gaishorn am See'] ['Zambia', 'diplomatic relation', 'Onneley']
ASK WHERE { resource:Zambia property:diplomatic_relation resource:Gaishorn_am_See . resource:Zambia property:diplomatic_relation resource:Onneley }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q403 Q24664355 Q3622532
P530
Q1048835
USER
Does Serbia have ambassadorial relations with Llanfair Pwllgwyngyll and Verbove ?
(Q403,P530,Q24664355) (Q403,P530,Q3622532)
action is_in
entity Q403
action intersection
action find_reverse
entity Q24664355
relation P530
action find_reverse
entity Q3622532
relation P530
['Q403', 'P530', 'Q24664355'] ['Q403', 'P530', 'Q3622532']
ASK WHERE { resource:Q403 property:P530 resource:Q3622532 . resource:Q403 property:P530 resource:Q24664355 }
Serbia Llanfair Pwllgwyngyll Verbove
action is_in
entity Serbia
action intersection
action find_reverse
entity Llanfair Pwllgwyngyll
relation diplomatic relation
action find_reverse
entity Verbove
relation diplomatic relation
['Serbia', 'diplomatic relation', 'Llanfair Pwllgwyngyll'] ['Serbia', 'diplomatic relation', 'Verbove']
ASK WHERE { resource:Serbia property:diplomatic_relation resource:Verbove . resource:Serbia property:diplomatic_relation resource:Llanfair_Pwllgwyngyll }
[]
political territorial entity
SYSTEM
NO
(Q403,P530,Q24664355) (Q403,P530,Q3622532)
action is_in
entity Q403
action intersection
action find_reverse
entity Q24664355
relation P530
action find_reverse
entity Q3622532
relation P530
[ANSWER]
['Q403', 'P530', 'Q24664355'] ['Q403', 'P530', 'Q3622532']
ASK WHERE { resource:Q403 property:P530 resource:Q3622532 . resource:Q403 property:P530 resource:Q24664355 }
No
action is_in
entity Serbia
action intersection
action find_reverse
entity Llanfair Pwllgwyngyll
relation diplomatic relation
action find_reverse
entity Verbove
relation diplomatic relation
['Serbia', 'diplomatic relation', 'Llanfair Pwllgwyngyll'] ['Serbia', 'diplomatic relation', 'Verbove']
ASK WHERE { resource:Serbia property:diplomatic_relation resource:Verbove . resource:Serbia property:diplomatic_relation resource:Llanfair_Pwllgwyngyll }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6933077 Q6867760
P27
Q15617994
USER
Which administrative territories do Minja Subota or Muhriz of Negeri Sembilan belong to ?
OR((Q6867760,P27,c(Q15617994)), (Q6933077,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6867760
relation P27
action find
entity Q6933077
relation P27
type Q15617994
{'OR': [['Q6867760', 'P27', {'concept': 'Q15617994'}], ['Q6933077', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q6867760 property:P27 ?o } UNION { resource:Q6933077 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Muhriz of Negeri Sembilan Minja Subota
action filter_type
action union
action find
entity Minja Subota
relation country of citizenship
action find
entity Muhriz of Negeri Sembilan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Minja Subota', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Muhriz of Negeri Sembilan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Minja_Subota property:country_of_citizenship ?o } UNION { resource:Muhriz_of_Negeri_Sembilan property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403 Q833
SYSTEM
Serbia, Malaysia
Q403 Q833
OR((Q6867760,P27,c(Q15617994)), (Q6933077,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6867760
relation P27
action find
entity Q6933077
relation P27
type Q15617994
Minja Subota or Muhriz of Negeri Sembilan belong to the [ANSWERS]
{'OR': [['Q6867760', 'P27', {'concept': 'Q15617994'}], ['Q6933077', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q6867760 property:P27 ?o } UNION { resource:Q6933077 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Serbia Malaysia
Minja Subota or Muhriz of Negeri Sembilan belong to the Serbia and Malaysia
Serbia Malaysia
action filter_type
action union
action find
entity Minja Subota
relation country of citizenship
action find
entity Muhriz of Negeri Sembilan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Minja Subota', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Muhriz of Negeri Sembilan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Minja_Subota property:country_of_citizenship ?o } UNION { resource:Muhriz_of_Negeri_Sembilan property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]