Simple Question (Direct)
Simple Question
Q5751198
P102
Q7210356
USER
Which party is Carlos Ominami affiliated with ?
(Q5751198,P102,c(Q7210356))
action filter_type
action find
entity Q5751198
relation P102
type Q7210356
['Q5751198', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q5751198 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Carlos Ominami
action filter_type
action find
entity Carlos Ominami
relation member of political party
type political organization
['Carlos Ominami', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Carlos_Ominami property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
political organization
Q1701173
SYSTEM
Revolutionary Left Movement
Q1701173
(Q5751198,P102,c(Q7210356))
action filter_type
action find
entity Q5751198
relation P102
type Q7210356
Carlos Ominami is affiliated with [ANSWER]
['Q5751198', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q5751198 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Revolutionary Left Movement
Carlos Ominami is affiliated with Revolutionary Left Movement
Revolutionary Left Movement
action filter_type
action find
entity Carlos Ominami
relation member of political party
type political organization
['Carlos Ominami', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Carlos_Ominami property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1701173
P1142
Q7257
USER
Which ideology does that political organization believe in ?
(Q1701173,P1142,c(Q7257))
action filter_type
action find
entity Q1701173
relation P1142
type Q7257
['Q1701173', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7257 . resource:Q1701173 property:P1142 ?p }
Revolutionary Left Movement
action filter_type
action find
entity Revolutionary Left Movement
relation political ideology
type ideology
['Revolutionary Left Movement', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:ideology . resource:Revolutionary_Left_Movement property:political_ideology ?p }
[]
ideology
Q211930
SYSTEM
Marxism–Leninism
Q211930
(Q1701173,P1142,c(Q7257))
action filter_type
action find
entity Q1701173
relation P1142
type Q7257
That political organization believes in [ANSWER]
['Q1701173', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7257 . resource:Q1701173 property:P1142 ?p }
Marxism–Leninism
That political organization believes in Marxism–Leninism
Marxism–Leninism
action filter_type
action find
entity Revolutionary Left Movement
relation political ideology
type ideology
['Revolutionary Left Movement', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:ideology . resource:Revolutionary_Left_Movement property:political_ideology ?p }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P1142
Q7257 Q7278 Q7210356
USER
Which ideologies are the ideology of more number of political parties and political organizations than that ideology ?
(c(Q7278)|c(Q7210356),P1142,c(Q7257))
action greater
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action count
action filter_multi_types
action find_reverse
entity Q211930
relation P1142
type Q7278
type Q7210356
[[{'concept': 'Q7278'}, {'concept': 'Q7210356'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:Q7278 ) ( ontology:Q7210356 ) } . ?b rdf:type ?s } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:P1142 resource:Q211930 . { ?i rdf:type ?g . VALUES ( ?g ) { ( ontology:Q7278 ) ( ontology:Q7210356 ) } } } } . FILTER ( ?m > ?a ) }
action greater
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action count
action filter_multi_types
action find_reverse
entity Marxism–Leninism
relation political ideology
type political party
type political organization
[[{'concept': 'political party'}, {'concept': 'political organization'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:political_party ) ( ontology:political_organization ) } . ?b rdf:type ?s } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:political_ideology resource:Marxism–Leninism . { ?i rdf:type ?g . VALUES ( ?g ) { ( ontology:political_party ) ( ontology:political_organization ) } } } } . FILTER ( ?m > ?a ) }
[]
ideology political party political organization
Q7272 Q209158 Q121254
SYSTEM
socialism, Christian democracy, social democracy
Q7272 Q209158 Q121254 Q189280
(c(Q7278)|c(Q7210356),P1142,c(Q7257))
action greater
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action count
action filter_multi_types
action find_reverse
entity Q211930
relation P1142
type Q7278
type Q7210356
[ANSWERS] are the ideology of more number of political parties and political organizations than that ideology
[[{'concept': 'Q7278'}, {'concept': 'Q7210356'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:Q7278 ) ( ontology:Q7210356 ) } . ?b rdf:type ?s } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:P1142 resource:Q211930 . { ?i rdf:type ?g . VALUES ( ?g ) { ( ontology:Q7278 ) ( ontology:Q7210356 ) } } } } . FILTER ( ?m > ?a ) }
socialism Christian democracy social democracy democratic socialism
Socialism, Christian democracy and social democracy are the ideology of more number of political parties and political organizations than that ideology
socialism Christian democracy social democracy
action greater
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action count
action filter_multi_types
action find_reverse
entity Marxism–Leninism
relation political ideology
type political party
type political organization
[[{'concept': 'political party'}, {'concept': 'political organization'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:political_party ) ( ontology:political_organization ) } . ?b rdf:type ?s } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:political_ideology resource:Marxism–Leninism . { ?i rdf:type ?g . VALUES ( ?g ) { ( ontology:political_party ) ( ontology:political_organization ) } } } } . FILTER ( ?m > ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q211930
P1142
Q43229 Q7278
USER
How many organizations or political parties believe in Marxism–Leninism ?
(c(Q43229),P1142,Q211930) (c(Q7278),P1142,Q211930)
action count
action union
action filter_type
action find_reverse
entity Q211930
relation P1142
type Q43229
action filter_type
action find_reverse
entity Q211930
relation P1142
type Q7278
[{'concept': 'Q43229'}, 'P1142', 'Q211930'] [{'concept': 'Q7278'}, 'P1142', 'Q211930']
SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { VALUES ( ?t ) { ( ontology:Q43229 ) ( ontology:Q7278 ) } . ?m rdf:type ?t }
Marxism–Leninism
action count
action union
action filter_type
action find_reverse
entity Marxism–Leninism
relation political ideology
type organization
action filter_type
action find_reverse
entity Marxism–Leninism
relation political ideology
type political party
[{'concept': 'organization'}, 'political ideology', 'Marxism–Leninism'] [{'concept': 'political party'}, 'political ideology', 'Marxism–Leninism']
SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { VALUES ( ?t ) { ( ontology:organization ) ( ontology:political_party ) } . ?m rdf:type ?t }
[]
organization political party
SYSTEM
31
Q371402 Q1786349 Q5154286 Q1359816 Q2576679 Q1780610 Q605468 Q2099347 Q300091 Q3089721 Q965481 Q6063944 Q3133156 Q2885750 Q587803 Q777074 Q385543 Q606955 Q325413 Q1071253 Q18511333 Q3134856 Q2395103 Q576518 Q3327113 Q2597196 Q3175770 Q79854 Q427325 Q581186 Q3326408
(c(Q43229),P1142,Q211930) (c(Q7278),P1142,Q211930)
action count
action union
action filter_type
action find_reverse
entity Q211930
relation P1142
type Q43229
action filter_type
action find_reverse
entity Q211930
relation P1142
type Q7278
[ANSWER]
[{'concept': 'Q43229'}, 'P1142', 'Q211930'] [{'concept': 'Q7278'}, 'P1142', 'Q211930']
SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { VALUES ( ?t ) { ( ontology:Q43229 ) ( ontology:Q7278 ) } . ?m rdf:type ?t }
Communist Party of Cuba Spanish Communist Workers' Party Communist Initiative Communist Party of Thailand Communist Party of Greece (Marxist–Leninist) Communist Party of Latvia Communist Party of Poland Azerbaijan Communist Party AUF Gelsenkirchen Workers' Communist Party Communist Party Revolutionary Communist Party Unified Communist Party of Spain Socialist Party of National Liberation Communist Party of Norway Communist Party of Burma Communist Party of the Netherlands Communist Party of South Ossetia Communist Party of Belarus Communist Youth League of China VZDOR - strana práce Communist Party of Spain (Marxist–Leninist) Pridnestrovie Communist Party Communist Party of Aragon Communist Party of Spain Brazilian Communist Party Communist Party of Spain (Reconstituted) Communist Party of the Soviet Union Communist Party of Vietnam Communist Party of Albania Communist Party of the Valencian Country
31
action count
action union
action filter_type
action find_reverse
entity Marxism–Leninism
relation political ideology
type organization
action filter_type
action find_reverse
entity Marxism–Leninism
relation political ideology
type political party
[{'concept': 'organization'}, 'political ideology', 'Marxism–Leninism'] [{'concept': 'political party'}, 'political ideology', 'Marxism–Leninism']
SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { VALUES ( ?t ) { ( ontology:organization ) ( ontology:political_party ) } . ?m rdf:type ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q211930
P135
Q502895
USER
Which person is associated with that ideology ?
action filter_type
action find_reverse
entity Q211930
relation P135
type Q502895
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P135 resource:Q211930 }
Marxism–Leninism
action filter_type
action find_reverse
entity Marxism–Leninism
relation movement
type common name
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:movement resource:Marxism–Leninism }
[]
common name
Q222831
SYSTEM
Ilich Ramírez Sánchez
Q222831
action filter_type
action find_reverse
entity Q211930
relation P135
type Q502895
[ANSWER] is associated with that ideology
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P135 resource:Q211930 }
Ilich Ramírez Sánchez
Ilich Ramírez Sánchez is associated with that ideology
Ilich Ramírez Sánchez
action filter_type
action find_reverse
entity Marxism–Leninism
relation movement
type common name
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:movement resource:Marxism–Leninism }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5506879 Q5751198
P19
Q515
USER
Which cities are the places of birth of Carlos Ominami or Fuad Mulahasanović ?
OR((Q5751198,P19,c(Q515)), (Q5506879,P19,c(Q515)))
action filter_type
action union
action find
entity Q5751198
relation P19
action find
entity Q5506879
relation P19
type Q515
{'OR': [['Q5751198', 'P19', {'concept': 'Q515'}], ['Q5506879', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?y ) { ( resource:Q5751198 ) ( resource:Q5506879 ) } . ?y property:P19 ?b } . ?b rdf:type ontology:Q515 }
Fuad Mulahasanović Carlos Ominami
action filter_type
action union
action find
entity Carlos Ominami
relation place of birth
action find
entity Fuad Mulahasanović
relation place of birth
type city
{'OR': [['Carlos Ominami', 'place of birth', {'concept': 'city'}], ['Fuad Mulahasanović', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?y ) { ( resource:Carlos_Ominami ) ( resource:Fuad_Mulahasanović ) } . ?y property:place_of_birth ?b } . ?b rdf:type ontology:city }
[]
city
Q2887 Q11194
SYSTEM
Santiago, Sarajevo
Q2887 Q11194
OR((Q5751198,P19,c(Q515)), (Q5506879,P19,c(Q515)))
action filter_type
action union
action find
entity Q5751198
relation P19
action find
entity Q5506879
relation P19
type Q515
[ANSWERS] are the places of birth of Carlos Ominami or Fuad Mulahasanović
{'OR': [['Q5751198', 'P19', {'concept': 'Q515'}], ['Q5506879', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?y ) { ( resource:Q5751198 ) ( resource:Q5506879 ) } . ?y property:P19 ?b } . ?b rdf:type ontology:Q515 }
Santiago Sarajevo
Santiago and Sarajevo are the places of birth of Carlos Ominami or Fuad Mulahasanović
Santiago Sarajevo
action filter_type
action union
action find
entity Carlos Ominami
relation place of birth
action find
entity Fuad Mulahasanović
relation place of birth
type city
{'OR': [['Carlos Ominami', 'place of birth', {'concept': 'city'}], ['Fuad Mulahasanović', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?y ) { ( resource:Carlos_Ominami ) ( resource:Fuad_Mulahasanović ) } . ?y property:place_of_birth ?b } . ?b rdf:type ontology:city }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P840
Q515 Q838948 Q166142
USER
Which cities are less number of works of art or applications set in than that city ?
(c(Q838948)|c(Q166142),P840,c(Q515))
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P840 ?y } UNION { ?x property:P840 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q166142 }
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:narrative_location ?y } UNION { ?x property:narrative_location ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:city . ?x rdf:type ontology:application }
[]
city work of art application
Comparative|More/Less|Mult. entity type|Clarification
Q11194
SYSTEM
Did you mean Sarajevo ?
(c(Q838948)|c(Q166142),P840,c(Q515))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P840 ?y } UNION { ?x property:P840 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q166142 }
Did you mean Sarajevo ?
Sarajevo
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:narrative_location ?y } UNION { ?x property:narrative_location ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:city . ?x rdf:type ontology:application }
[]
Comparative Reasoning (All)
USER
No, I meant Santiago. Could you tell me the answer for that?
(c(Q838948)|c(Q166142),P840,c(Q515))
Q2887
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q515'}]
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'city'}]
[]
Q1899 Q42622 Q1461
SYSTEM
Kyiv, Suzhou, Manila
Q1410 Q34261 Q2749 Q8684 Q2100 Q5690 Q1530 Q1641811 Q386635 Q1519 Q5838 Q841125 Q66485 Q9005 Q14821 Q3852 Q1711 Q2337 Q6602 Q3870 Q3955 Q3838 Q16506 Q2833 Q1533 Q19689 Q6582 Q2079 Q34217 Q42622 Q3994 Q3572 Q2119 Q3126 Q3004 Q1461 Q7473516 Q1854 Q2135 Q43196 Q235 Q17042 Q3692 Q3014 Q1899 Q2978 Q2999
(c(Q838948)|c(Q166142),P840,c(Q515))
[ANSWERS] are less number of works of art or applications set in than that city
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P840 ?y } UNION { ?x property:P840 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q166142 }
Gibraltar Port-au-Prince Augsburg Seoul Duisburg Sparta Baghdad Mirotice Hikone Abu Dhabi Kabul Tsuyama Jaipur Brussels Coburg Worms Potsdam Smolensk Strasbourg Nairobi Weimar Kinshasa České Budějovice Freiburg im Breisgau Caracas Tirana Carcassonne Leipzig Oxford Suzhou Kempten Tunis Mannheim Erlangen Ingolstadt Manila Tokyo Ho Chi Minh City Winnipeg Cincinnati Monaco Oakland Riyadh Wolfsburg Kyiv Regensburg Würzburg
Kyiv, Suzhou and Manila are less number of works of art or applications set in than that city
Kyiv Suzhou Manila
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:narrative_location ?y } UNION { ?x property:narrative_location ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:city . ?x rdf:type ontology:application }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q515 Q1048835 Q15617994
USER
How many cities are the capitals of around 3 political territories and administrative territories ?
(c(Q1048835)|c(Q15617994),P36,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q1048835
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
value 3
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?m rdf:type ?l } GROUP BY ?o } . FILTER ( ?i = 3 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation capital
type city
type political territorial entity
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
value 3
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?m rdf:type ?l } GROUP BY ?o } . FILTER ( ?i = 3 ) }
[]
city political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q2865 Q2978
(c(Q1048835)|c(Q15617994),P36,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q1048835
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
value 3
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?m rdf:type ?l } GROUP BY ?o } . FILTER ( ?i = 3 ) }
Kassel Regensburg
2
action count
action approx
action union
action find_reverse_tuple_counts
relation capital
type city
type political territorial entity
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
value 3
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?m rdf:type ?l } GROUP BY ?o } . FILTER ( ?i = 3 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q11194 Q36312
P740
Q43229
USER
How many organizations originated at Sarajevo or Calgary ?
(c(Q43229),P740,Q11194) (c(Q43229),P740,Q36312)
action count
action union
action filter_type
action find_reverse
entity Q11194
relation P740
type Q43229
action filter_type
action find_reverse
entity Q36312
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q11194'] [{'concept': 'Q43229'}, 'P740', 'Q36312']
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:P740 ?u . VALUES ( ?u ) { ( resource:Q36312 ) ( resource:Q11194 ) } }
Sarajevo Calgary
action count
action union
action filter_type
action find_reverse
entity Sarajevo
relation location of formation
type organization
action filter_type
action find_reverse
entity Calgary
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Sarajevo'] [{'concept': 'organization'}, 'location of formation', 'Calgary']
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:location_of_formation ?u . VALUES ( ?u ) { ( resource:Calgary ) ( resource:Sarajevo ) } }
[]
organization
SYSTEM
13
Q7842385 Q16951004 Q8036077 Q17137799 Q5323708 Q6927497 Q1032229 Q5594069 Q7162745 Q764321 Q5376822 Q5427107 Q7696320
(c(Q43229),P740,Q11194) (c(Q43229),P740,Q36312)
action count
action union
action filter_type
action find_reverse
entity Q11194
relation P740
type Q43229
action filter_type
action find_reverse
entity Q36312
relation P740
type Q43229
[ANSWER]
[{'concept': 'Q43229'}, 'P740', 'Q11194'] [{'concept': 'Q43229'}, 'P740', 'Q36312']
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:P740 ?u . VALUES ( ?u ) { ( resource:Q36312 ) ( resource:Q11194 ) } }
Trinidad Drilling Connacher Oil and Gas World Professional Chuckwagon Association RSX Energy ENMAX Moxie's Grill & Bar Canadian Natural Resources Gran Tierra Energy Pengrowth Energy Penn West Exploration Enerflex FSA Corporation Telemach
13
action count
action union
action filter_type
action find_reverse
entity Sarajevo
relation location of formation
type organization
action filter_type
action find_reverse
entity Calgary
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Sarajevo'] [{'concept': 'organization'}, 'location of formation', 'Calgary']
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:location_of_formation ?u . VALUES ( ?u ) { ( resource:Calgary ) ( resource:Sarajevo ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1899
P609
Q83620
USER
Which thoroughfare has Kyiv as its destination ?
(c(Q83620),P609,Q1899)
action filter_type
action find_reverse
entity Q1899
relation P609
type Q83620
[{'concept': 'Q83620'}, 'P609', 'Q1899']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q83620 . ?h property:P609 resource:Q1899 }
Kyiv
action filter_type
action find_reverse
entity Kyiv
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Kyiv']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:thoroughfare . ?h property:terminus_location resource:Kyiv }
[]
thoroughfare
Q680477
SYSTEM
Highway M01
Q680477
(c(Q83620),P609,Q1899)
action filter_type
action find_reverse
entity Q1899
relation P609
type Q83620
[ANSWER] has Kyiv as its destination
[{'concept': 'Q83620'}, 'P609', 'Q1899']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q83620 . ?h property:P609 resource:Q1899 }
Highway M01
Highway M01 has Kyiv as its destination
Highway M01
action filter_type
action find_reverse
entity Kyiv
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Kyiv']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:thoroughfare . ?h property:terminus_location resource:Kyiv }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q680477
P127
Q895526
USER
Who owns that thoroughfare ?
(Q680477,P127,c(Q895526))
action filter_type
action find
entity Q680477
relation P127
type Q895526
['Q680477', 'P127', {'concept': 'Q895526'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q895526 . resource:Q680477 property:P127 ?x }
Highway M01
action filter_type
action find
entity Highway M01
relation owned by
type authority organ
['Highway M01', 'owned by', {'concept': 'authority organ'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:authority_organ . resource:Highway_M01 property:owned_by ?x }
[]
authority organ
Q4146648
SYSTEM
State road Agency of Ukraine
Q4146648
(Q680477,P127,c(Q895526))
action filter_type
action find
entity Q680477
relation P127
type Q895526
[ANSWER] owns that thoroughfare
['Q680477', 'P127', {'concept': 'Q895526'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q895526 . resource:Q680477 property:P127 ?x }
State road Agency of Ukraine
State road Agency of Ukraine owns that thoroughfare
State road Agency of Ukraine
action filter_type
action find
entity Highway M01
relation owned by
type authority organ
['Highway M01', 'owned by', {'concept': 'authority organ'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:authority_organ . resource:Highway_M01 property:owned_by ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4146648
P159
Q515
USER
Where is the head office for that authority organ located ?
(Q4146648,P159,c(Q515))
action filter_type
action find
entity Q4146648
relation P159
type Q515
['Q4146648', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q515 . resource:Q4146648 property:P159 ?a }
State road Agency of Ukraine
action filter_type
action find
entity State road Agency of Ukraine
relation headquarters location
type city
['State road Agency of Ukraine', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:city . resource:State_road_Agency_of_Ukraine property:headquarters_location ?a }
[]
city
Q1899
SYSTEM
Kyiv
Q1899
(Q4146648,P159,c(Q515))
action filter_type
action find
entity Q4146648
relation P159
type Q515
The head office for that authority organ is located in [ANSWER]
['Q4146648', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q515 . resource:Q4146648 property:P159 ?a }
Kyiv
The head office for that authority organ is located in Kyiv
Kyiv
action filter_type
action find
entity State road Agency of Ukraine
relation headquarters location
type city
['State road Agency of Ukraine', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:city . resource:State_road_Agency_of_Ukraine property:headquarters_location ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1899
P190
Q515 Q56061
USER
How many cities and administrative territories are partner towns of Kyiv ?
(Q1899,P190,c(Q515)) (Q1899,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q1899
relation P190
type Q515
action filter_type
action find
entity Q1899
relation P190
type Q56061
['Q1899', 'P190', {'concept': 'Q515'}] ['Q1899', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:Q56061 ) ( ontology:Q515 ) } }
Kyiv
action count
action union
action filter_type
action find
entity Kyiv
relation sister city
type city
action filter_type
action find
entity Kyiv
relation sister city
type administrative territorial entity
['Kyiv', 'sister city', {'concept': 'city'}] ['Kyiv', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } }
[]
city administrative territorial entity
SYSTEM
8 cities and 32 administrative territories
Q1757 Q1754 Q994 Q727 Q23436 Q472 Q1770 Q1773 Q1297 Q5168 Q40840 Q9248 Q1524 Q206954 Q1520 Q1781 Q2079 Q25331 Q19689 Q1741 Q1780 Q42622 Q3711 Q1726 Q21197 Q1486 Q7880 Q8678 Q216 Q172 Q270 Q2887 Q1489 Q239 Q1953 Q956 Q2280 Q2044 Q3640 Q3926
(Q1899,P190,c(Q515)) (Q1899,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q1899
relation P190
type Q515
action filter_type
action find
entity Q1899
relation P190
type Q56061
[ANSWER]
['Q1899', 'P190', {'concept': 'Q515'}] ['Q1899', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:Q56061 ) ( ontology:Q515 ) } }
Helsinki Stockholm Tbilisi Amsterdam Edinburgh Sofia Tallinn Riga Chicago Makhachkala Tampere Baku Athens Kastoria Astana Budapest Leipzig Odense Tirana Vienna Bratislava Suzhou Belgrade Munich Chișinău Buenos Aires Toulouse Rio de Janeiro Vilnius Toronto Warsaw Santiago Mexico City Brussels Yerevan Beijing Minsk Florence Ankara Pretoria
8 cities and 32 administrative territories
action count
action union
action filter_type
action find
entity Kyiv
relation sister city
type city
action filter_type
action find
entity Kyiv
relation sister city
type administrative territorial entity
['Kyiv', 'sister city', {'concept': 'city'}] ['Kyiv', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1899
P17
Q7275
USER
Which states do Kyiv belong to ?
(Q1899,P17,c(Q7275))
action filter_type
action find
entity Q1899
relation P17
type Q7275
['Q1899', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7275 . resource:Q1899 property:P17 ?f }
Kyiv
action filter_type
action find
entity Kyiv
relation country
type state
['Kyiv', 'country', {'concept': 'state'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:state . resource:Kyiv property:country ?f }
[]
state
Q15180 Q49683 Q133356
SYSTEM
Soviet Union, Grand Duchy of Lithuania, Ukrainian Soviet Socialist Republic
Q133356 Q172107 Q139319 Q243610 Q15180 Q1108445 Q186096 Q49683
(Q1899,P17,c(Q7275))
action filter_type
action find
entity Q1899
relation P17
type Q7275
Kyiv belong to [ANSWERS]
['Q1899', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7275 . resource:Q1899 property:P17 ?f }
Ukrainian Soviet Socialist Republic Polish–Lithuanian Commonwealth Russian Republic Ukrainian People's Republic Soviet Union Kievan Rus' Tsardom of Russia Grand Duchy of Lithuania
Kyiv belong to Soviet Union, Grand Duchy of Lithuania and Ukrainian Soviet Socialist Republic
Soviet Union Grand Duchy of Lithuania Ukrainian Soviet Socialist Republic
action filter_type
action find
entity Kyiv
relation country
type state
['Kyiv', 'country', {'concept': 'state'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:state . resource:Kyiv property:country ?f }
[]