Simple Question (Direct)
Simple Question
Q6234347
P106
Q12737077
USER
Which occupation has Jörgen Weibull as his/her 's career ?
(Q6234347,P106,c(Q12737077))
action filter_type
action find
entity Q6234347
relation P106
type Q12737077
['Q6234347', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q6234347 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Jörgen Weibull
action filter_type
action find
entity Jörgen Weibull
relation occupation
type occupation
['Jörgen Weibull', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Jörgen_Weibull property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6234347,P106,c(Q12737077))
action filter_type
action find
entity Q6234347
relation P106
type Q12737077
The [ANSWER] has Jörgen Weibull as his/her 's career
['Q6234347', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q6234347 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
politician
The politician has Jörgen Weibull as his/her 's career
politician
action filter_type
action find
entity Jörgen Weibull
relation occupation
type occupation
['Jörgen Weibull', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Jörgen_Weibull property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6234347
P937
Q56061
USER
What is the work location of that person ?
(Q82955,P937,c(Q56061))
action filter_type
action find
entity Q6234347
relation P937
type Q56061
['Q82955', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q6234347 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Jörgen Weibull
action filter_type
action find
entity Jörgen Weibull
relation work location
type administrative territorial entity
['politician', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jörgen_Weibull property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q82955,P937,c(Q56061))
action filter_type
action find
entity Q6234347
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q82955', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q6234347 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Stockholm
The work location of that person is in Stockholm
Stockholm
action filter_type
action find
entity Jörgen Weibull
relation work location
type administrative territorial entity
['politician', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jörgen_Weibull property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11859217 Q6234347
P27
Q15617994
USER
Which administrative territories are Jörgen Weibull or Evy Björkman an inhabitant of ?
OR((Q6234347,P27,c(Q15617994)), (Q11859217,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6234347
relation P27
action find
entity Q11859217
relation P27
type Q15617994
{'OR': [['Q6234347', 'P27', {'concept': 'Q15617994'}], ['Q11859217', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { ?m property:P27 ?i . VALUES ( ?m ) { ( resource:Q6234347 ) ( resource:Q11859217 ) } } . ?i rdf:type ontology:Q15617994 }
Evy Björkman Jörgen Weibull
action filter_type
action union
action find
entity Jörgen Weibull
relation country of citizenship
action find
entity Evy Björkman
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jörgen Weibull', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Evy Björkman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?m property:country_of_citizenship ?i . VALUES ( ?m ) { ( resource:Jörgen_Weibull ) ( resource:Evy_Björkman ) } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q34
SYSTEM
Finland, Sweden
Q33 Q34
OR((Q6234347,P27,c(Q15617994)), (Q11859217,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6234347
relation P27
action find
entity Q11859217
relation P27
type Q15617994
[ANSWERS] are Jörgen Weibull or Evy Björkman an inhabitant of
{'OR': [['Q6234347', 'P27', {'concept': 'Q15617994'}], ['Q11859217', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { ?m property:P27 ?i . VALUES ( ?m ) { ( resource:Q6234347 ) ( resource:Q11859217 ) } } . ?i rdf:type ontology:Q15617994 }
Finland Sweden
Finland and Sweden are Jörgen Weibull or Evy Björkman an inhabitant of
Finland Sweden
action filter_type
action union
action find
entity Jörgen Weibull
relation country of citizenship
action find
entity Evy Björkman
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jörgen Weibull', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Evy Björkman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?m property:country_of_citizenship ?i . VALUES ( ?m ) { ( resource:Jörgen_Weibull ) ( resource:Evy_Björkman ) } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4345742
P27
Q502895
USER
Are Pekka Aikio civilians of those administrative territories ?
(Q4345742,P27,Q33) (Q4345742,P27,Q34)
action is_in
entity prev_answer
action find
entity Q4345742
relation P27
['Q4345742', 'P27', 'Q33'] ['Q4345742', 'P27', 'Q34']
ASK WHERE { VALUES ( ?q ) { ( resource:Q33 ) ( resource:Q34 ) } . resource:Q4345742 property:P27 ?q }
Pekka Aikio
action is_in
entity prev_answer
action find
entity Pekka Aikio
relation country of citizenship
['Pekka Aikio', 'country of citizenship', 'Finland'] ['Pekka Aikio', 'country of citizenship', 'Sweden']
ASK WHERE { VALUES ( ?q ) { ( resource:Finland ) ( resource:Sweden ) } . resource:Pekka_Aikio property:country_of_citizenship ?q }
[]
common name
SYSTEM
YES
(Q4345742,P27,Q33) (Q4345742,P27,Q34)
action is_in
entity prev_answer
action find
entity Q4345742
relation P27
[ANSWER]
['Q4345742', 'P27', 'Q33'] ['Q4345742', 'P27', 'Q34']
ASK WHERE { VALUES ( ?q ) { ( resource:Q33 ) ( resource:Q34 ) } . resource:Q4345742 property:P27 ?q }
Yes
action is_in
entity prev_answer
action find
entity Pekka Aikio
relation country of citizenship
['Pekka Aikio', 'country of citizenship', 'Finland'] ['Pekka Aikio', 'country of citizenship', 'Sweden']
ASK WHERE { VALUES ( ?q ) { ( resource:Finland ) ( resource:Sweden ) } . resource:Pekka_Aikio property:country_of_citizenship ?q }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with atleast 123 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 123
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?s property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?n >= 123 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 123
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?s property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?n >= 123 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 123
[ANSWER] is known to have diplomatic connections with atleast 123 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?s property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?n >= 123 ) }
Germany
Germany is known to have diplomatic connections with atleast 123 administrative territories
Germany
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 123
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?s property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?n >= 123 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q513352 Q183
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relations with Germany and are Pak Yung-Sun an inhabitant of ?
AND((Q183,P530,c(Q15617994)), (Q513352,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q513352
relation P27
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q513352', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { resource:Q513352 property:P27 ?z . resource:Q183 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Pak Yung-Sun Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Pak Yung-Sun
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Pak Yung-Sun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { resource:Pak_Yung-Sun property:country_of_citizenship ?z . resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q423
SYSTEM
North Korea
Q423
AND((Q183,P530,c(Q15617994)), (Q513352,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q513352
relation P27
type Q15617994
[ANSWER] have diplomatic relations with Germany and are Pak Yung-Sun an inhabitant of
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q513352', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { resource:Q513352 property:P27 ?z . resource:Q183 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
North Korea
North Korea have diplomatic relations with Germany and are Pak Yung-Sun an inhabitant of
North Korea
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Pak Yung-Sun
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Pak Yung-Sun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { resource:Pak_Yung-Sun property:country_of_citizenship ?z . resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q423 Q16999874 Q17
P47
Q15617994
USER
Is that administrative territory bordered by Panama Buena Vista Union School District and Japan ?
(Q423,P47,Q16999874) (Q423,P47,Q17)
action is_in
entity Q423
action intersection
action find_reverse
entity Q16999874
relation P47
action find_reverse
entity Q17
relation P47
['Q423', 'P47', 'Q16999874'] ['Q423', 'P47', 'Q17']
ASK WHERE { resource:Q423 property:P47 resource:Q16999874 . resource:Q423 property:P47 resource:Q17 }
North Korea Panama Buena Vista Union School District Japan
action is_in
entity North Korea
action intersection
action find_reverse
entity Panama Buena Vista Union School District
relation shares border with
action find_reverse
entity Japan
relation shares border with
['North Korea', 'shares border with', 'Panama Buena Vista Union School District'] ['North Korea', 'shares border with', 'Japan']
ASK WHERE { resource:North_Korea property:shares_border_with resource:Panama_Buena_Vista_Union_School_District . resource:North_Korea property:shares_border_with resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q423,P47,Q16999874) (Q423,P47,Q17)
action is_in
entity Q423
action intersection
action find_reverse
entity Q16999874
relation P47
action find_reverse
entity Q17
relation P47
[ANSWER]
['Q423', 'P47', 'Q16999874'] ['Q423', 'P47', 'Q17']
ASK WHERE { resource:Q423 property:P47 resource:Q16999874 . resource:Q423 property:P47 resource:Q17 }
NO and YES respectively
action is_in
entity North Korea
action intersection
action find_reverse
entity Panama Buena Vista Union School District
relation shares border with
action find_reverse
entity Japan
relation shares border with
['North Korea', 'shares border with', 'Panama Buena Vista Union School District'] ['North Korea', 'shares border with', 'Japan']
ASK WHERE { resource:North_Korea property:shares_border_with resource:Panama_Buena_Vista_Union_School_District . resource:North_Korea property:shares_border_with resource:Japan }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10833383 Q33
P47 P17
Q15617994
USER
Which administrative territories share the border with Finland or do Văn Lang belong to ?
OR((Q33,P47,c(Q15617994)), (Q10833383,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q33
relation P47
action find
entity Q10833383
relation P17
type Q15617994
{'OR': [['Q33', 'P47', {'concept': 'Q15617994'}], ['Q10833383', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q33 property:P47 ?s } UNION { resource:Q10833383 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Văn Lang Finland
action filter_type
action union
action find
entity Finland
relation shares border with
action find
entity Văn Lang
relation country
type designation for an administrative territorial entity
{'OR': [['Finland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Văn Lang', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Finland property:shares_border_with ?s } UNION { resource:Văn_Lang property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q159 Q881 Q34
SYSTEM
Norway, Russia, Vietnam, Sweden
Q20 Q159 Q881 Q34
OR((Q33,P47,c(Q15617994)), (Q10833383,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q33
relation P47
action find
entity Q10833383
relation P17
type Q15617994
[ANSWERS] share the border with Finland or do Văn Lang belong to
{'OR': [['Q33', 'P47', {'concept': 'Q15617994'}], ['Q10833383', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q33 property:P47 ?s } UNION { resource:Q10833383 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Norway Russia Vietnam Sweden
Norway, Russia, Vietnam and Sweden share the border with Finland or do Văn Lang belong to
Norway Russia Vietnam Sweden
action filter_type
action union
action find
entity Finland
relation shares border with
action find
entity Văn Lang
relation country
type designation for an administrative territorial entity
{'OR': [['Finland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Văn Lang', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Finland property:shares_border_with ?s } UNION { resource:Văn_Lang property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q15700808 Q43229
USER
Which administrative territories are around 1 urban unit definitions and organizations named after ?
(c(Q15700808)|c(Q43229),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q15700808
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q43229
value 1
[[{'concept': 'Q15700808'}, {'concept': 'Q43229'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?c WHERE { { ?i property:P138 ?c . ?c rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15700808 } UNION { ?i property:P138 ?c . ?c rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q43229 } } GROUP BY ?c } }
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type urban unit definition
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type organization
value 1
[[{'concept': 'urban unit definition'}, {'concept': 'organization'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?c WHERE { { ?i property:named_after ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:urban_unit_definition } UNION { ?i property:named_after ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:organization } } GROUP BY ?c } }
[]
designation for an administrative territorial entity urban unit definition organization
Q81729 Q1630
SYSTEM
Radeberg, Altona
Q81729 Q1630
(c(Q15700808)|c(Q43229),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q15700808
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q43229
value 1
[ANSWERS] are around 1 urban unit definitions and organizations named after
[[{'concept': 'Q15700808'}, {'concept': 'Q43229'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?c WHERE { { ?i property:P138 ?c . ?c rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15700808 } UNION { ?i property:P138 ?c . ?c rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q43229 } } GROUP BY ?c } }
Radeberg Altona
Radeberg and Altona are around 1 urban unit definitions and organizations named after
Radeberg Altona
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type urban unit definition
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type organization
value 1
[[{'concept': 'urban unit definition'}, {'concept': 'organization'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?c WHERE { { ?i property:named_after ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:urban_unit_definition } UNION { ?i property:named_after ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:organization } } GROUP BY ?c } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q515
USER
How many cities are twin towns of that administrative territory ?
(Q81729,P190,c(Q515))
['Q81729', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24211784 property:P190 ?z . ?z rdf:type ontology:Q7930989 }
['Radeberg', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Radeberg property:sister_city ?z . ?z rdf:type ontology:city }
[]
city
Quantitative|Count|Single entity type|Clarification
Q1630
SYSTEM
Did you mean Altona ?
(Q81729,P190,c(Q515)) (Q1630,P190,c(Q515))
[ANSWER]
['Q81729', 'P190', {'concept': 'Q515'}] ['Q1630', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24211784 property:P190 ?z . ?z rdf:type ontology:Q7930989 }
Did you mean Altona ?
Altona
['Radeberg', 'sister city', {'concept': 'city'}] ['Altona', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Radeberg property:sister_city ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Radeberg. Could you tell me the answer for that?
(Q81729,P190,c(Q515))
Q81729
['Q81729', 'P190', {'concept': 'Q515'}]
['Radeberg', 'sister city', {'concept': 'city'}]
[]
SYSTEM
1
Q239597
(Q81729,P190,c(Q515))
[ANSWER]
['Q81729', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q24211784 property:P190 ?z . ?z rdf:type ontology:Q7930989 }
Neratovice
1
['Radeberg', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Radeberg property:sister_city ?z . ?z rdf:type ontology:city }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q614720 Q183
P530 P17
Q15617994
USER
Which administrative territories have a diplomatic relationship with Germany and are not Guaíba River present in ?
AND((Q183,P530,c(Q15617994)), NOT((Q614720,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q614720
relation P17
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q614720', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?v . MINUS { resource:Q614720 property:P17 ?v } }
Guaíba River Germany
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Guaíba River
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Guaíba River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?v . MINUS { resource:Guaíba_River property:country ?v } }
[]
designation for an administrative territorial entity
Q230 Q711 Q843 Q117 Q218 Q189 Q750 Q36 Q219 Q1028
SYSTEM
Some of them are Georgia, Mongolia, Pakistan, Ghana, Romania, Iceland, Bolivia, Poland, Bulgaria, Morocco
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
AND((Q183,P530,c(Q15617994)), NOT((Q614720,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q614720
relation P17
type Q15617994
[ANSWERS] have a diplomatic relationship with Germany and are not Guaíba River present in
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q614720', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q183 property:P530 ?v . MINUS { resource:Q614720 property:P17 ?v } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Georgia, Mongolia, Pakistan, Ghana, Romania, Iceland, Bolivia, Poland, Bulgaria and Morocco have a diplomatic relationship with Germany and are not Guaíba River present in
Georgia Mongolia Pakistan Ghana Romania Iceland Bolivia Poland Bulgaria Morocco
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Guaíba River
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Guaíba River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Germany property:diplomatic_relation ?v . MINUS { resource:Guaíba_River property:country ?v } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q230 Q711 Q843 Q117 Q218 Q189 Q750 Q36 Q219 Q1028
P17
Q15617994
USER
Which administrative territories are present in those ones ?
(c(Q15617994),P17,Q230) (c(Q15617994),P17,Q711) (c(Q15617994),P17,Q843) (c(Q15617994),P17,Q117) (c(Q15617994),P17,Q218) (c(Q15617994),P17,Q189) (c(Q15617994),P17,Q750) (c(Q15617994),P17,Q36) (c(Q15617994),P17,Q219) (c(Q15617994),P17,Q1028)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q15617994
[{'concept': 'Q15617994'}, 'P17', 'Q230'] [{'concept': 'Q15617994'}, 'P17', 'Q711'] [{'concept': 'Q15617994'}, 'P17', 'Q843'] [{'concept': 'Q15617994'}, 'P17', 'Q117'] [{'concept': 'Q15617994'}, 'P17', 'Q218'] [{'concept': 'Q15617994'}, 'P17', 'Q189'] [{'concept': 'Q15617994'}, 'P17', 'Q750'] [{'concept': 'Q15617994'}, 'P17', 'Q36'] [{'concept': 'Q15617994'}, 'P17', 'Q219'] [{'concept': 'Q15617994'}, 'P17', 'Q1028']
SELECT DISTINCT ?f WHERE { ?f property:P17 ?v . ?f rdf:type ontology:Q15617994 . VALUES ( ?v ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
Georgia Mongolia Pakistan Ghana Romania Iceland Bolivia Poland Bulgaria Morocco
action filter_type
action find_reverse
entity prev_answer
relation country
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Georgia'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Mongolia'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Pakistan'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Ghana'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Romania'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Iceland'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Bolivia'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Poland'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Bulgaria'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Morocco']
SELECT DISTINCT ?f WHERE { ?f property:country ?v . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?v ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
designation for an administrative territorial entity
Q230 Q36 Q218
SYSTEM
Georgia, Poland, Romania
Q2512996 Q2475809 Q2043690 Q3596043 Q230 Q2594995 Q2995277 Q2513666 Q1815665 Q711 Q4448451 Q50399 Q3187075 Q3396693 Q15982532 Q2336399 Q2379075 Q843 Q6374728 Q6202991 Q7641761 Q7898605 Q4916335 Q545769 Q2829048 Q3019338 Q5298060 Q7042619 Q6449969 Q117 Q3342359 Q1872530 Q4688281 Q747872 Q218 Q640364 Q961150 Q2162119 Q3656821 Q846416 Q659103 Q167161 Q4686931 Q12735961 Q3481200 Q955655 Q252191 Q189 Q4960471 Q750 Q1062593 Q1108183 Q824650 Q5037687 Q13189792 Q1887504 Q545826 Q7106751 Q855983 Q1990266 Q1102058 Q6420591 Q739568 Q11780654 Q857304 Q5459752 Q743704 Q1634585 Q11789395 Q1433149 Q93706 Q1851596 Q1012384 Q4426125 Q4188196 Q1801709 Q1637419 Q36 Q147874 Q11779446 Q2673696 Q142511 Q7106719 Q7106711 Q7106715 Q7106714 Q147759 Q7106732 Q1671187 Q7990425 Q4904388 Q5446765 Q815731 Q4442915 Q219 Q1027607 Q7553685 Q2745175 Q2829332 Q3015942 Q3306635 Q1028 Q12244557 Q12244511 Q3303192 Q12244509 Q12244536 Q12244539 Q1244742 Q3483272 Q1169817 Q2403368 Q15629582 Q3474901 Q17318027
(c(Q15617994),P17,Q230) (c(Q15617994),P17,Q711) (c(Q15617994),P17,Q843) (c(Q15617994),P17,Q117) (c(Q15617994),P17,Q218) (c(Q15617994),P17,Q189) (c(Q15617994),P17,Q750) (c(Q15617994),P17,Q36) (c(Q15617994),P17,Q219) (c(Q15617994),P17,Q1028)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q15617994
[ANSWERS] are present in those ones
[{'concept': 'Q15617994'}, 'P17', 'Q230'] [{'concept': 'Q15617994'}, 'P17', 'Q711'] [{'concept': 'Q15617994'}, 'P17', 'Q843'] [{'concept': 'Q15617994'}, 'P17', 'Q117'] [{'concept': 'Q15617994'}, 'P17', 'Q218'] [{'concept': 'Q15617994'}, 'P17', 'Q189'] [{'concept': 'Q15617994'}, 'P17', 'Q750'] [{'concept': 'Q15617994'}, 'P17', 'Q36'] [{'concept': 'Q15617994'}, 'P17', 'Q219'] [{'concept': 'Q15617994'}, 'P17', 'Q1028']
SELECT DISTINCT ?f WHERE { ?f property:P17 ?v . ?f rdf:type ontology:Q15617994 . VALUES ( ?v ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
Gardabani Municipality Borjomi Municipality Gali Municipality Avadhara Georgia Mekhadyr Dzau district Abasha Municipality Znaur Mongolia Setsen Khan Aimag province of Mongolia Aimag Mandakh Machur Baluchistan district of Pakistan Pakistan Kassena Nankana West District Jirapa District Sunyani West District Upper Denkyira East Municipal District Birim Central Municipal District district of Ghana East Akim Municipal District South Dayi District Dormaa East District Nkoranza South District Kwahu East District Ghana Nkoranza North District Dudești, Bucharest Grivița Freidorf Romania municipiu of Romania Pipera Colentina Bulgaria Someşeni commune of Romania Băneasa Bucureștii Noi Morărești Grafarvogur municipality of Iceland Árbær Iceland Breiðholt Bolivia province of Bolivia San Ramón canton of Bolivia Caranavi Municipality Santuario de Quillacas Wilanów Jelitkowo Osiedle Zawady, Białystok Białołęka Nikiszowiec Brynów Kleparz Boryń, Lubusz Voivodeship Mikicin-Kolonia Bielany Flisy Wawel Mokotów Nalepy Nowa Huta Kazimierz Ursus Krzyki Sobów, Tarnobrzeg Zaspa Wesoła Praga Poland Rudawa, Lesser Poland Voivodeship Michałowo Przymorze Kreis Pleschen Osiedle Jaroszówka, Białystok Osiedle Bacieczki, Białystok Osiedle Centrum, Białystok Osiedle Bojary, Białystok Rudno, Lesser Poland Voivodeship Osiedle Piaski, Białystok Włochy Wełnowiec Bielany, Kraków Mahala Principality of Bulgaria Sofia Capital Municipality Bulgaria Pancharevo district of Sofia Boulemane Al Fida Dar Gueddari Mers Sultan Morocco Moulay Rachid Ben M'Sick Maârif Anfa Sidi Bernoussi Sidi Othmane Mauretania Tingitana Sidi Moumen Aïn Chock Anfa province of Morocco Sbata rural commune of Morocco
Georgia, Poland and Romania are present in those ones
Georgia Poland Romania
action filter_type
action find_reverse
entity prev_answer
relation country
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Georgia'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Mongolia'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Pakistan'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Ghana'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Romania'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Iceland'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Bolivia'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Poland'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Bulgaria'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Morocco']
SELECT DISTINCT ?f WHERE { ?f property:country ?v . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?v ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q230 Q36 Q218
P463
Q43229
USER
Which organizations were Georgia, Poland and Romania a member of ?
(Q230,P463,c(Q43229)) (Q36,P463,c(Q43229)) (Q218,P463,c(Q43229))
action union
action filter_type
action find
entity Q230
relation P463
type Q43229
action filter_type
action find
entity Q36
relation P463
type Q43229
action filter_type
action find
entity Q218
relation P463
type Q43229
['Q230', 'P463', {'concept': 'Q43229'}] ['Q36', 'P463', {'concept': 'Q43229'}] ['Q218', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?y WHERE { { ?y rdf:type ontology:Q43229 . resource:Q230 property:P463 ?y } UNION { resource:Q36 property:P463 ?y . ?y rdf:type ontology:Q43229 } }
Georgia Poland Romania
action union
action filter_type
action find
entity Georgia
relation member of
type organization
action filter_type
action find
entity Poland
relation member of
type organization
action filter_type
action find
entity Romania
relation member of
type organization
['Georgia', 'member of', {'concept': 'organization'}] ['Poland', 'member of', {'concept': 'organization'}] ['Romania', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?y WHERE { { ?y rdf:type ontology:organization . resource:Georgia property:member_of ?y } UNION { resource:Poland property:member_of ?y . ?y rdf:type ontology:organization } }
[]
organization
Q7809 Q7825 Q7825
SYSTEM
United Nations Educational, Scientific and Cultural Organization for 1st, World Trade Organization for 2nd, 3rd
Q380340 Q7825 Q191384 Q41550 Q7809 Q7825 Q177773 Q656801 Q827525 Q191384 Q899770 Q656801 Q380340 Q7825 Q827525
(Q230,P463,c(Q43229)) (Q36,P463,c(Q43229)) (Q218,P463,c(Q43229))
action union
action filter_type
action find
entity Q230
relation P463
type Q43229
action filter_type
action find
entity Q36
relation P463
type Q43229
action filter_type
action find
entity Q218
relation P463
type Q43229
[ANSWERS]
['Q230', 'P463', {'concept': 'Q43229'}] ['Q36', 'P463', {'concept': 'Q43229'}] ['Q218', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?y WHERE { { ?y rdf:type ontology:Q43229 . resource:Q230 property:P463 ?y } UNION { resource:Q36 property:P463 ?y . ?y rdf:type ontology:Q43229 } }
Organization of the Black Sea Economic Cooperation World Trade Organization International Bank for Reconstruction and Development Organisation for Economic Co-operation and Development United Nations Educational, Scientific and Cultural Organization World Trade Organization World Intellectual Property Organization International Finance Corporation International Development Association International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation Organization of the Black Sea Economic Cooperation World Trade Organization International Development Association
United Nations Educational, Scientific and Cultural Organization, World Trade Organization and World Trade Organization were Georgia, Poland and Romania a member of
United Nations Educational, Scientific and Cultural Organization World Trade Organization World Trade Organization
action union
action filter_type
action find
entity Georgia
relation member of
type organization
action filter_type
action find
entity Poland
relation member of
type organization
action filter_type
action find
entity Romania
relation member of
type organization
['Georgia', 'member of', {'concept': 'organization'}] ['Poland', 'member of', {'concept': 'organization'}] ['Romania', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?y WHERE { { ?y rdf:type ontology:organization . resource:Georgia property:member_of ?y } UNION { resource:Poland property:member_of ?y . ?y rdf:type ontology:organization } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P710
Q15275719
USER
What event was Poland a participant of ?
(c(Q15275719),P710,Q36)
action filter_type
action find_reverse
entity Q36
relation P710
type Q15275719
[{'concept': 'Q15275719'}, 'P710', 'Q36']
SELECT DISTINCT ?r WHERE { ?r property:P710 resource:Q36 . ?r rdf:type ontology:Q15275719 }
Poland
action filter_type
action find_reverse
entity Poland
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Poland']
SELECT DISTINCT ?r WHERE { ?r property:participant resource:Poland . ?r rdf:type ontology:recurring_event }
[]
recurring event
Q207815
SYSTEM
Eurovision Song Contest 1996
Q207815
(c(Q15275719),P710,Q36)
action filter_type
action find_reverse
entity Q36
relation P710
type Q15275719
Poland was the [ANSWER]
[{'concept': 'Q15275719'}, 'P710', 'Q36']
SELECT DISTINCT ?r WHERE { ?r property:P710 resource:Q36 . ?r rdf:type ontology:Q15275719 }
Eurovision Song Contest 1996
Poland was the Eurovision Song Contest 1996
Eurovision Song Contest 1996
action filter_type
action find_reverse
entity Poland
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Poland']
SELECT DISTINCT ?r WHERE { ?r property:participant resource:Poland . ?r rdf:type ontology:recurring_event }
[]