Simple Question (Direct)
Simple Question
Q100427
P21
Q290
USER
Which sex does Anna Blos have ?
(Q100427,P21,c(Q290))
action filter_type
action find
entity Q100427
relation P21
type Q290
['Q100427', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q100427 property:P21 ?b . ?b rdf:type ontology:Q290 }
Anna Blos
action filter_type
action find
entity Anna Blos
relation gender
type sex
['Anna Blos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Anna_Blos property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q100427,P21,c(Q290))
action filter_type
action find
entity Q100427
relation P21
type Q290
Anna Blos has a [ANSWER]
['Q100427', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q100427 property:P21 ?b . ?b rdf:type ontology:Q290 }
female
Anna Blos has a female
female
action filter_type
action find
entity Anna Blos
relation gender
type sex
['Anna Blos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Anna_Blos property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q100427
P102
Q7278
USER
Which political party is that person a member of ?
(Q6581072,P102,c(Q7278))
action filter_type
action find
entity Q100427
relation P102
type Q7278
['Q6581072', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?v WHERE { resource:Q100427 property:P102 ?v . ?v rdf:type ontology:Q7278 }
Anna Blos
action filter_type
action find
entity Anna Blos
relation member of political party
type political party
['female', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?v WHERE { resource:Anna_Blos property:member_of_political_party ?v . ?v rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q6581072,P102,c(Q7278))
action filter_type
action find
entity Q100427
relation P102
type Q7278
[ANSWER] is that person a member of
['Q6581072', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?v WHERE { resource:Q100427 property:P102 ?v . ?v rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Social Democratic Party of Germany is that person a member of
Social Democratic Party of Germany
action filter_type
action find
entity Anna Blos
relation member of political party
type political party
['female', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?v WHERE { resource:Anna_Blos property:member_of_political_party ?v . ?v rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q49768 Q183 Q5483944
P17
Q1048835
USER
Is that political party located in Germany and Huachac District ?
(Q49768,P17,Q183) (Q49768,P17,Q5483944)
action is_in
entity Q49768
action intersection
action find_reverse
entity Q183
relation P17
action find_reverse
entity Q5483944
relation P17
['Q49768', 'P17', 'Q183'] ['Q49768', 'P17', 'Q5483944']
ASK WHERE { resource:Q49768 property:P17 resource:Q183 . resource:Q49768 property:P17 resource:Q5483944 }
Social Democratic Party of Germany Germany Huachac District
action is_in
entity Social Democratic Party of Germany
action intersection
action find_reverse
entity Germany
relation country
action find_reverse
entity Huachac District
relation country
['Social Democratic Party of Germany', 'country', 'Germany'] ['Social Democratic Party of Germany', 'country', 'Huachac District']
ASK WHERE { resource:Social_Democratic_Party_of_Germany property:country resource:Germany . resource:Social_Democratic_Party_of_Germany property:country resource:Huachac_District }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q49768,P17,Q183) (Q49768,P17,Q5483944)
action is_in
entity Q49768
action intersection
action find_reverse
entity Q183
relation P17
action find_reverse
entity Q5483944
relation P17
[ANSWER]
['Q49768', 'P17', 'Q183'] ['Q49768', 'P17', 'Q5483944']
ASK WHERE { resource:Q49768 property:P17 resource:Q183 . resource:Q49768 property:P17 resource:Q5483944 }
YES and NO respectively
action is_in
entity Social Democratic Party of Germany
action intersection
action find_reverse
entity Germany
relation country
action find_reverse
entity Huachac District
relation country
['Social Democratic Party of Germany', 'country', 'Germany'] ['Social Democratic Party of Germany', 'country', 'Huachac District']
ASK WHERE { resource:Social_Democratic_Party_of_Germany property:country resource:Germany . resource:Social_Democratic_Party_of_Germany property:country resource:Huachac_District }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1142
Q7257 Q1047113 Q7278
USER
Which political parties believe in around 4 ideologies and special fields ?
(c(Q7278),P1142,c(Q7257)|c(Q1047113))
action approx
action union
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
value 4
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q7257'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?i ) WHERE { VALUES ( ?c ) { ( ontology:Q7257 ) ( ontology:Q1047113 ) } . ?h rdf:type ?c } GROUP BY ?y } . FILTER ( ?i = 4 ) }
action approx
action union
action find_tuple_counts
relation political ideology
type political party
type ideology
action find_tuple_counts
relation political ideology
type political party
type special field
value 4
[{'concept': 'political party'}, 'political ideology', [{'concept': 'ideology'}, {'concept': 'special field'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?i ) WHERE { VALUES ( ?c ) { ( ontology:ideology ) ( ontology:special_field ) } . ?h rdf:type ?c } GROUP BY ?y } . FILTER ( ?i = 4 ) }
[]
ideology special field political party
Q653566 Q130761
SYSTEM
European National Front, Popular Unity Candidates
Q653566 Q130761
(c(Q7278),P1142,c(Q7257)|c(Q1047113))
action approx
action union
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
value 4
[ANSWERS] believe in around 4 ideologies and special fields
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q7257'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?i ) WHERE { VALUES ( ?c ) { ( ontology:Q7257 ) ( ontology:Q1047113 ) } . ?h rdf:type ?c } GROUP BY ?y } . FILTER ( ?i = 4 ) }
European National Front Popular Unity Candidates
European National Front and Popular Unity Candidates believe in around 4 ideologies and special fields
European National Front Popular Unity Candidates
action approx
action union
action find_tuple_counts
relation political ideology
type political party
type ideology
action find_tuple_counts
relation political ideology
type political party
type special field
value 4
[{'concept': 'political party'}, 'political ideology', [{'concept': 'ideology'}, {'concept': 'special field'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?i ) WHERE { VALUES ( ?c ) { ( ontology:ideology ) ( ontology:special_field ) } . ?h rdf:type ?c } GROUP BY ?y } . FILTER ( ?i = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q93568 Q183
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with Germany or do Leopold Fitzinger belong to ?
OR((Q183,P530,c(Q1048835)), (Q93568,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q93568
relation P27
type Q1048835
{'OR': [['Q183', 'P530', {'concept': 'Q1048835'}], ['Q93568', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q183 property:P530 ?m } UNION { resource:Q93568 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
Leopold Fitzinger Germany
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Leopold Fitzinger
relation country of citizenship
type political territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Leopold Fitzinger', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Germany property:diplomatic_relation ?m } UNION { resource:Leopold_Fitzinger property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1000 Q40 Q408 Q16 Q35 Q664
SYSTEM
Gabon, Austria, Australia, Canada, Denmark, New Zealand
Q1000 Q40 Q408 Q16 Q35 Q664
OR((Q183,P530,c(Q1048835)), (Q93568,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q93568
relation P27
type Q1048835
[ANSWERS] have diplomatic relationships with Germany or do Leopold Fitzinger belong to
{'OR': [['Q183', 'P530', {'concept': 'Q1048835'}], ['Q93568', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q183 property:P530 ?m } UNION { resource:Q93568 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
Gabon Austria Australia Canada Denmark New Zealand
Gabon, Austria, Australia, Canada, Denmark and New Zealand have diplomatic relationships with Germany or do Leopold Fitzinger belong to
Gabon Austria Australia Canada Denmark New Zealand
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Leopold Fitzinger
relation country of citizenship
type political territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Leopold Fitzinger', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Germany property:diplomatic_relation ?m } UNION { resource:Leopold_Fitzinger property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1000 Q40 Q408 Q16 Q35 Q664
P30
Q2221906
USER
Which geographic locations are Gabon, Austria, Australia, Canada, Denmark and New Zealand located in ?
(Q1000,P30,c(Q2221906)) (Q40,P30,c(Q2221906)) (Q408,P30,c(Q2221906)) (Q16,P30,c(Q2221906)) (Q35,P30,c(Q2221906)) (Q664,P30,c(Q2221906))
action union
action filter_type
action find
entity Q1000
relation P30
type Q2221906
action filter_type
action find
entity Q40
relation P30
type Q2221906
action filter_type
action find
entity Q408
relation P30
type Q2221906
action filter_type
action find
entity Q16
relation P30
type Q2221906
action filter_type
action find
entity Q35
relation P30
type Q2221906
action filter_type
action find
entity Q664
relation P30
type Q2221906
['Q1000', 'P30', {'concept': 'Q2221906'}] ['Q40', 'P30', {'concept': 'Q2221906'}] ['Q408', 'P30', {'concept': 'Q2221906'}] ['Q16', 'P30', {'concept': 'Q2221906'}] ['Q35', 'P30', {'concept': 'Q2221906'}] ['Q664', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?r WHERE { ?w property:P30 ?r . VALUES ( ?w ) { ( resource:Q40 ) ( resource:Q1000 ) } }
Gabon Austria Australia Canada Denmark New Zealand
action union
action filter_type
action find
entity Gabon
relation continent
type geographic location
action filter_type
action find
entity Austria
relation continent
type geographic location
action filter_type
action find
entity Australia
relation continent
type geographic location
action filter_type
action find
entity Canada
relation continent
type geographic location
action filter_type
action find
entity Denmark
relation continent
type geographic location
action filter_type
action find
entity New Zealand
relation continent
type geographic location
['Gabon', 'continent', {'concept': 'geographic location'}] ['Austria', 'continent', {'concept': 'geographic location'}] ['Australia', 'continent', {'concept': 'geographic location'}] ['Canada', 'continent', {'concept': 'geographic location'}] ['Denmark', 'continent', {'concept': 'geographic location'}] ['New Zealand', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?r WHERE { ?w property:continent ?r . VALUES ( ?w ) { ( resource:Austria ) ( resource:Gabon ) } }
[]
geographic location
Q15 Q46 Q46
SYSTEM
Africa for 1st, Europe for 2nd, 3rd
Q15 Q46 Q3960 Q538 Q49 Q46 Q538
(Q1000,P30,c(Q2221906)) (Q40,P30,c(Q2221906)) (Q408,P30,c(Q2221906)) (Q16,P30,c(Q2221906)) (Q35,P30,c(Q2221906)) (Q664,P30,c(Q2221906))
action union
action filter_type
action find
entity Q1000
relation P30
type Q2221906
action filter_type
action find
entity Q40
relation P30
type Q2221906
action filter_type
action find
entity Q408
relation P30
type Q2221906
action filter_type
action find
entity Q16
relation P30
type Q2221906
action filter_type
action find
entity Q35
relation P30
type Q2221906
action filter_type
action find
entity Q664
relation P30
type Q2221906
[ANSWERS]
['Q1000', 'P30', {'concept': 'Q2221906'}] ['Q40', 'P30', {'concept': 'Q2221906'}] ['Q408', 'P30', {'concept': 'Q2221906'}] ['Q16', 'P30', {'concept': 'Q2221906'}] ['Q35', 'P30', {'concept': 'Q2221906'}] ['Q664', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?r WHERE { ?w property:P30 ?r . VALUES ( ?w ) { ( resource:Q40 ) ( resource:Q1000 ) } }
Africa Europe Australia Oceania North America Europe Oceania
Africa, Europe and Europe are Gabon, Austria, Australia, Canada, Denmark and New Zealand located in
Africa Europe Europe
action union
action filter_type
action find
entity Gabon
relation continent
type geographic location
action filter_type
action find
entity Austria
relation continent
type geographic location
action filter_type
action find
entity Australia
relation continent
type geographic location
action filter_type
action find
entity Canada
relation continent
type geographic location
action filter_type
action find
entity Denmark
relation continent
type geographic location
action filter_type
action find
entity New Zealand
relation continent
type geographic location
['Gabon', 'continent', {'concept': 'geographic location'}] ['Austria', 'continent', {'concept': 'geographic location'}] ['Australia', 'continent', {'concept': 'geographic location'}] ['Canada', 'continent', {'concept': 'geographic location'}] ['Denmark', 'continent', {'concept': 'geographic location'}] ['New Zealand', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?r WHERE { ?w property:continent ?r . VALUES ( ?w ) { ( resource:Austria ) ( resource:Gabon ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P194
Q1752346
USER
Which assembly is the representative body for Australia ?
(Q408,P194,c(Q1752346))
action filter_type
action find
entity Q408
relation P194
type Q1752346
['Q408', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1752346 . resource:Q408 property:P194 ?w }
Australia
action filter_type
action find
entity Australia
relation legislative body
type assembly
['Australia', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:assembly . resource:Australia property:legislative_body ?w }
[]
assembly
Q382118
SYSTEM
Parliament of Australia
Q382118
(Q408,P194,c(Q1752346))
action filter_type
action find
entity Q408
relation P194
type Q1752346
Australia [ANSWER] is the representative body for Australia
['Q408', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1752346 . resource:Q408 property:P194 ?w }
Parliament of Australia
Australia Parliament of Australia is the representative body for Australia
Parliament of Australia
action filter_type
action find
entity Australia
relation legislative body
type assembly
['Australia', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:assembly . resource:Australia property:legislative_body ?w }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q1752346 Q2668072 Q874405
USER
How many assemblies are less number of collections and social groups a component of than that assembly ?
(c(Q2668072)|c(Q874405),P361,c(Q1752346))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q1752346
type Q2668072
action find_reverse_tuple_counts
relation P361
type Q1752346
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q382118
relation P361
type Q2668072
type Q874405
[[{'concept': 'Q2668072'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?n ) WHERE { VALUES ( ?o ) { ( ontology:Q874405 ) ( ontology:Q2668072 ) } . ?u rdf:type ?o } GROUP BY ?g } . FILTER ( ?n < ?c ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:P361 resource:Q382118 . { { ?i rdf:type ontology:Q2668072 } UNION { ?i rdf:type ontology:Q874405 } } } } }
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type assembly
type collection
action find_reverse_tuple_counts
relation part of
type assembly
type social group
action count
action filter_multi_types
action find_reverse
entity Parliament of Australia
relation part of
type collection
type social group
[[{'concept': 'collection'}, {'concept': 'social group'}], 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?n ) WHERE { VALUES ( ?o ) { ( ontology:social_group ) ( ontology:collection ) } . ?u rdf:type ?o } GROUP BY ?g } . FILTER ( ?n < ?c ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:part_of resource:Parliament_of_Australia . { { ?i rdf:type ontology:collection } UNION { ?i rdf:type ontology:social_group } } } } }
[]
assembly collection social group
SYSTEM
0
(c(Q2668072)|c(Q874405),P361,c(Q1752346))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q1752346
type Q2668072
action find_reverse_tuple_counts
relation P361
type Q1752346
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q382118
relation P361
type Q2668072
type Q874405
[ANSWER]
[[{'concept': 'Q2668072'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?n ) WHERE { VALUES ( ?o ) { ( ontology:Q874405 ) ( ontology:Q2668072 ) } . ?u rdf:type ?o } GROUP BY ?g } . FILTER ( ?n < ?c ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:P361 resource:Q382118 . { { ?i rdf:type ontology:Q2668072 } UNION { ?i rdf:type ontology:Q874405 } } } } }
0
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type assembly
type collection
action find_reverse_tuple_counts
relation part of
type assembly
type social group
action count
action filter_multi_types
action find_reverse
entity Parliament of Australia
relation part of
type collection
type social group
[[{'concept': 'collection'}, {'concept': 'social group'}], 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?n ) WHERE { VALUES ( ?o ) { ( ontology:social_group ) ( ontology:collection ) } . ?u rdf:type ?o } GROUP BY ?g } . FILTER ( ?n < ?c ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:part_of resource:Parliament_of_Australia . { { ?i rdf:type ontology:collection } UNION { ?i rdf:type ontology:social_group } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q1752346 Q852446
USER
How many US administrative territories have exactly 1 assembly as their legislative body ?
(c(Q852446),P194,c(Q1752346))
action count
action equal
action find_tuple_counts
relation P194
type Q852446
type Q1752346
value 1
[{'concept': 'Q852446'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?d ) WHERE { ?g property:P194 ?i . ?g rdf:type ontology:Q852446 . ?i rdf:type ontology:Q1752346 } GROUP BY ?g } . FILTER ( ?d = 1 ) }
action count
action equal
action find_tuple_counts
relation legislative body
type administrative territorial entity of the United States
type assembly
value 1
[{'concept': 'administrative territorial entity of the United States'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?d ) WHERE { ?g property:legislative_body ?i . ?g rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?i rdf:type ontology:assembly } GROUP BY ?g } . FILTER ( ?d = 1 ) }
[]
assembly administrative territorial entity of the United States
SYSTEM
1
Q487704
(c(Q852446),P194,c(Q1752346))
action count
action equal
action find_tuple_counts
relation P194
type Q852446
type Q1752346
value 1
[ANSWER]
[{'concept': 'Q852446'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?d ) WHERE { ?g property:P194 ?i . ?g rdf:type ontology:Q852446 . ?i rdf:type ontology:Q1752346 } GROUP BY ?g } . FILTER ( ?d = 1 ) }
Honolulu County
1
action count
action equal
action find_tuple_counts
relation legislative body
type administrative territorial entity of the United States
type assembly
value 1
[{'concept': 'administrative territorial entity of the United States'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?d ) WHERE { ?g property:legislative_body ?i . ?g rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?i rdf:type ontology:assembly } GROUP BY ?g } . FILTER ( ?d = 1 ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q20895945 Q16
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Canada and are not the countries of citizenship of Josip Baric ?
AND((Q16,P530,c(Q15617994)), NOT((Q20895945,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q16
relation P530
action find
entity Q20895945
relation P27
type Q15617994
{'AND': [['Q16', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q20895945', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?j WHERE { resource:Q16 property:P530 ?j . FILTER NOT EXISTS { resource:Q20895945 property:P27 ?j } . ?j rdf:type ontology:Q15617994 }
Josip Baric Canada
action filter_type
action difference
action find
entity Canada
relation diplomatic relation
action find
entity Josip Baric
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Josip Baric', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?j WHERE { resource:Canada property:diplomatic_relation ?j . FILTER NOT EXISTS { resource:Josip_Baric property:country_of_citizenship ?j } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q115 Q711 Q1029 Q801 Q229 Q804 Q38 Q36 Q1028 Q212
SYSTEM
Some of them are Ethiopia, Mongolia, Mozambique, Israel, Cyprus, Panama, Italy, Poland, Morocco, Ukraine
Q804 Q801 Q843 Q1029 Q1028 Q145 Q229 Q33 Q30 Q36 Q79 Q34 Q77 Q39 Q38 Q878 Q739 Q833 Q711 Q1030 Q851 Q928 Q115 Q258 Q212 Q159 Q43 Q155 Q218 Q20 Q423 Q252 Q884
AND((Q16,P530,c(Q15617994)), NOT((Q20895945,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q16
relation P530
action find
entity Q20895945
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Canada and are not the countries of citizenship of Josip Baric
{'AND': [['Q16', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q20895945', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?j WHERE { resource:Q16 property:P530 ?j . FILTER NOT EXISTS { resource:Q20895945 property:P27 ?j } . ?j rdf:type ontology:Q15617994 }
Panama Israel Pakistan Mozambique Morocco United Kingdom Cyprus Finland United States of America Poland Egypt Sweden Uruguay Switzerland Italy United Arab Emirates Colombia Malaysia Mongolia Namibia Saudi Arabia Philippines Ethiopia South Africa Ukraine Russia Turkey Brazil Romania Norway North Korea Indonesia South Korea
Ethiopia, Mongolia, Mozambique, Israel, Cyprus, Panama, Italy, Poland, Morocco and Ukraine have a diplomatic relationship with Canada and are not the countries of citizenship of Josip Baric
Ethiopia Mongolia Mozambique Israel Cyprus Panama Italy Poland Morocco Ukraine
action filter_type
action difference
action find
entity Canada
relation diplomatic relation
action find
entity Josip Baric
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Josip Baric', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?j WHERE { resource:Canada property:diplomatic_relation ?j . FILTER NOT EXISTS { resource:Josip_Baric property:country_of_citizenship ?j } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q801
P112
Q2668072
USER
Which collection was founded by that administrative territory ?
(c(Q2668072),P112,Q801)
action filter_type
action find_reverse
entity Q801
relation P112
type Q2668072
[{'concept': 'Q2668072'}, 'P112', 'Q801']
SELECT DISTINCT ?v WHERE { ?v property:P112 resource:Q801 . ?v rdf:type ontology:Q2668072 }
Israel
action filter_type
action find_reverse
entity Israel
relation founder
type collection
[{'concept': 'collection'}, 'founder', 'Israel']
SELECT DISTINCT ?v WHERE { ?v property:founder resource:Israel . ?v rdf:type ontology:collection }
[]
collection
Clarification for simple ques.
Q1029
SYSTEM
Did you mean Mozambique ?
Q115 Q711 Q1029 Q801 Q229 Q804 Q38 Q36 Q1028 Q212
(c(Q2668072),P112,Q115) (c(Q2668072),P112,Q711) (c(Q2668072),P112,Q1029) (c(Q2668072),P112,Q801) (c(Q2668072),P112,Q229) (c(Q2668072),P112,Q804) (c(Q2668072),P112,Q38) (c(Q2668072),P112,Q36) (c(Q2668072),P112,Q1028) (c(Q2668072),P112,Q212)
[ANSWER]
[{'concept': 'Q2668072'}, 'P112', 'Q115'] [{'concept': 'Q2668072'}, 'P112', 'Q711'] [{'concept': 'Q2668072'}, 'P112', 'Q1029'] [{'concept': 'Q2668072'}, 'P112', 'Q801'] [{'concept': 'Q2668072'}, 'P112', 'Q229'] [{'concept': 'Q2668072'}, 'P112', 'Q804'] [{'concept': 'Q2668072'}, 'P112', 'Q38'] [{'concept': 'Q2668072'}, 'P112', 'Q36'] [{'concept': 'Q2668072'}, 'P112', 'Q1028'] [{'concept': 'Q2668072'}, 'P112', 'Q212']
SELECT DISTINCT ?v WHERE { ?v property:P112 resource:Q801 . ?v rdf:type ontology:Q2668072 }
Ethiopia Mongolia Mozambique Israel Cyprus Panama Italy Poland Morocco Ukraine
Did you mean Mozambique ?
Mozambique
[{'concept': 'collection'}, 'founder', 'Ethiopia'] [{'concept': 'collection'}, 'founder', 'Mongolia'] [{'concept': 'collection'}, 'founder', 'Mozambique'] [{'concept': 'collection'}, 'founder', 'Israel'] [{'concept': 'collection'}, 'founder', 'Cyprus'] [{'concept': 'collection'}, 'founder', 'Panama'] [{'concept': 'collection'}, 'founder', 'Italy'] [{'concept': 'collection'}, 'founder', 'Poland'] [{'concept': 'collection'}, 'founder', 'Morocco'] [{'concept': 'collection'}, 'founder', 'Ukraine']
SELECT DISTINCT ?v WHERE { ?v property:founder resource:Israel . ?v rdf:type ontology:collection }
[]
Simple Question (Coreferenced)
USER
No, I meant Israel. Could you tell me the answer for that?
(c(Q2668072),P112,Q801)
Q801
[{'concept': 'Q2668072'}, 'P112', 'Q801']
[{'concept': 'collection'}, 'founder', 'Israel']
[]
Q6518785
SYSTEM
Lehi Museum
Q6518785
(c(Q2668072),P112,Q801)
action filter_type
action find_reverse
entity Q801
relation P112
type Q2668072
[ANSWER] was founded by that administrative territory
[{'concept': 'Q2668072'}, 'P112', 'Q801']
SELECT DISTINCT ?v WHERE { ?v property:P112 resource:Q801 . ?v rdf:type ontology:Q2668072 }
Lehi Museum
Lehi Museum was founded by that administrative territory
Lehi Museum
action filter_type
action find_reverse
entity Israel
relation founder
type collection
[{'concept': 'collection'}, 'founder', 'Israel']
SELECT DISTINCT ?v WHERE { ?v property:founder resource:Israel . ?v rdf:type ontology:collection }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q6518785 Q3470339 Q80483
P17
Q15617994
USER
Is that collection located in Sauga and Bempflingen ?
(Q6518785,P17,Q3470339) (Q6518785,P17,Q80483)
action is_in
entity Q6518785
action intersection
action find_reverse
entity Q3470339
relation P17
action find_reverse
entity Q80483
relation P17
['Q6518785', 'P17', 'Q3470339'] ['Q6518785', 'P17', 'Q80483']
ASK WHERE { resource:Q6518785 property:P17 resource:Q3470339 . resource:Q6518785 property:P17 resource:Q80483 }
Lehi Museum Sauga Bempflingen
action is_in
entity Lehi Museum
action intersection
action find_reverse
entity Sauga
relation country
action find_reverse
entity Bempflingen
relation country
['Lehi Museum', 'country', 'Sauga'] ['Lehi Museum', 'country', 'Bempflingen']
ASK WHERE { resource:Lehi_Museum property:country resource:Sauga . resource:Lehi_Museum property:country resource:Bempflingen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q6518785,P17,Q3470339) (Q6518785,P17,Q80483)
action is_in
entity Q6518785
action intersection
action find_reverse
entity Q3470339
relation P17
action find_reverse
entity Q80483
relation P17
[ANSWER]
['Q6518785', 'P17', 'Q3470339'] ['Q6518785', 'P17', 'Q80483']
ASK WHERE { resource:Q6518785 property:P17 resource:Q3470339 . resource:Q6518785 property:P17 resource:Q80483 }
No
action is_in
entity Lehi Museum
action intersection
action find_reverse
entity Sauga
relation country
action find_reverse
entity Bempflingen
relation country
['Lehi Museum', 'country', 'Sauga'] ['Lehi Museum', 'country', 'Bempflingen']
ASK WHERE { resource:Lehi_Museum property:country resource:Sauga . resource:Lehi_Museum property:country resource:Bempflingen }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6518785
P112
Q15617994
USER
Who was the founder of Lehi Museum ?
(Q6518785,P112,c(Q15617994))
action filter_type
action find
entity Q6518785
relation P112
type Q15617994
['Q6518785', 'P112', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q6518785 property:P112 ?y . ?y rdf:type ontology:Q15617994 }
Lehi Museum
action filter_type
action find
entity Lehi Museum
relation founder
type designation for an administrative territorial entity
['Lehi Museum', 'founder', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lehi_Museum property:founder ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q801
SYSTEM
Israel
Q801
(Q6518785,P112,c(Q15617994))
action filter_type
action find
entity Q6518785
relation P112
type Q15617994
The founder of Lehi Museum was of [ANSWER]
['Q6518785', 'P112', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q6518785 property:P112 ?y . ?y rdf:type ontology:Q15617994 }
Israel
The founder of Lehi Museum was of Israel
Israel
action filter_type
action find
entity Lehi Museum
relation founder
type designation for an administrative territorial entity
['Lehi Museum', 'founder', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lehi_Museum property:founder ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]