Simple Question (Direct)
Simple Question
Q1354393
P102
Q7278
USER
Which political party is Erika Hickel a member of ?
(Q1354393,P102,c(Q7278))
action filter_type
action find
entity Q1354393
relation P102
type Q7278
['Q1354393', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?e WHERE { resource:Q1354393 property:P102 ?e . ?e rdf:type ontology:Q7278 }
Erika Hickel
action filter_type
action find
entity Erika Hickel
relation member of political party
type political party
['Erika Hickel', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?e WHERE { resource:Erika_Hickel property:member_of_political_party ?e . ?e rdf:type ontology:political_party }
[]
political party
Q18761823
SYSTEM
The Greens
Q18761823
(Q1354393,P102,c(Q7278))
action filter_type
action find
entity Q1354393
relation P102
type Q7278
The [ANSWER] is Erika Hickel a member of
['Q1354393', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?e WHERE { resource:Q1354393 property:P102 ?e . ?e rdf:type ontology:Q7278 }
The Greens
The The Greens is Erika Hickel a member of
The Greens
action filter_type
action find
entity Erika Hickel
relation member of political party
type political party
['Erika Hickel', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?e WHERE { resource:Erika_Hickel property:member_of_political_party ?e . ?e rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1354393
P108
Q3918
USER
Who is the employer of that person ?
(Q18761823,P108,c(Q3918))
action filter_type
action find
entity Q1354393
relation P108
type Q3918
['Q18761823', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?r WHERE { resource:Q1354393 property:P108 ?r . ?r rdf:type ontology:Q3918 }
Erika Hickel
action filter_type
action find
entity Erika Hickel
relation employer
type university
['The Greens', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?r WHERE { resource:Erika_Hickel property:employer ?r . ?r rdf:type ontology:university }
[]
university
Q734324
SYSTEM
Braunschweig University of Technology
Q734324
(Q18761823,P108,c(Q3918))
action filter_type
action find
entity Q1354393
relation P108
type Q3918
The employer of that person is the [ANSWER]
['Q18761823', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?r WHERE { resource:Q1354393 property:P108 ?r . ?r rdf:type ontology:Q3918 }
Braunschweig University of Technology
The employer of that person is the Braunschweig University of Technology
Braunschweig University of Technology
action filter_type
action find
entity Erika Hickel
relation employer
type university
['The Greens', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?r WHERE { resource:Erika_Hickel property:employer ?r . ?r rdf:type ontology:university }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7426958 Q1354393
P69 P108
Q3918
USER
Which universities do Erika Hickel work for or were Satyendranath Tagore educated at ?
OR((Q1354393,P108,c(Q3918)), (Q7426958,P69,c(Q3918)))
action filter_type
action union
action find
entity Q1354393
relation P108
action find
entity Q7426958
relation P69
type Q3918
{'OR': [['Q1354393', 'P108', {'concept': 'Q3918'}], ['Q7426958', 'P69', {'concept': 'Q3918'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q7426958 property:P69 ?m } UNION { resource:Q1354393 property:P108 ?m } } . ?m rdf:type ontology:Q3918 }
Satyendranath Tagore Erika Hickel
action filter_type
action union
action find
entity Erika Hickel
relation employer
action find
entity Satyendranath Tagore
relation educated at
type university
{'OR': [['Erika Hickel', 'employer', {'concept': 'university'}], ['Satyendranath Tagore', 'educated at', {'concept': 'university'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Satyendranath_Tagore property:educated_at ?m } UNION { resource:Erika_Hickel property:employer ?m } } . ?m rdf:type ontology:university }
[]
university
Q734324 Q1145306
SYSTEM
Braunschweig University of Technology, University of Calcutta
Q734324 Q1145306
OR((Q1354393,P108,c(Q3918)), (Q7426958,P69,c(Q3918)))
action filter_type
action union
action find
entity Q1354393
relation P108
action find
entity Q7426958
relation P69
type Q3918
Erika Hickel work in [ANSWERS]
{'OR': [['Q1354393', 'P108', {'concept': 'Q3918'}], ['Q7426958', 'P69', {'concept': 'Q3918'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q7426958 property:P69 ?m } UNION { resource:Q1354393 property:P108 ?m } } . ?m rdf:type ontology:Q3918 }
Braunschweig University of Technology University of Calcutta
Erika Hickel work in Braunschweig University of Technology and University of Calcutta
Braunschweig University of Technology University of Calcutta
action filter_type
action union
action find
entity Erika Hickel
relation employer
action find
entity Satyendranath Tagore
relation educated at
type university
{'OR': [['Erika Hickel', 'employer', {'concept': 'university'}], ['Satyendranath Tagore', 'educated at', {'concept': 'university'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Satyendranath_Tagore property:educated_at ?m } UNION { resource:Erika_Hickel property:employer ?m } } . ?m rdf:type ontology:university }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1145306
P159
Q56061
USER
Where is the headquarter of that university located ?
(Q1145306,P159,c(Q56061))
action filter_type
action find
entity Q1145306
relation P159
type Q56061
['Q1145306', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q1145306 property:P159 ?g }
University of Calcutta
action filter_type
action find
entity University of Calcutta
relation headquarters location
type administrative territorial entity
['University of Calcutta', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:University_of_Calcutta property:headquarters_location ?g }
[]
administrative territorial entity
Clarification for simple ques.
Q1145306
SYSTEM
Did you mean University of Calcutta ?
Q734324 Q1145306
(Q734324,P159,c(Q56061)) (Q1145306,P159,c(Q56061))
[ANSWER]
['Q734324', 'P159', {'concept': 'Q56061'}] ['Q1145306', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q1145306 property:P159 ?g }
Braunschweig University of Technology University of Calcutta
Did you mean University of Calcutta ?
University of Calcutta
['Braunschweig University of Technology', 'headquarters location', {'concept': 'administrative territorial entity'}] ['University of Calcutta', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:University_of_Calcutta property:headquarters_location ?g }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1145306,P159,c(Q56061))
['Q1145306', 'P159', {'concept': 'Q56061'}]
['University of Calcutta', 'headquarters location', {'concept': 'administrative territorial entity'}]
[]
Q1348
SYSTEM
Kolkata
Q1348
(Q1145306,P159,c(Q56061))
action filter_type
action find
entity Q1145306
relation P159
type Q56061
The headquarter of that university is located in [ANSWER]
['Q1145306', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q1145306 property:P159 ?g }
Kolkata
The headquarter of that university is located in Kolkata
Kolkata
action filter_type
action find
entity University of Calcutta
relation headquarters location
type administrative territorial entity
['University of Calcutta', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:University_of_Calcutta property:headquarters_location ?g }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15452 Q1354393
P47 P27
Q1048835
USER
Which political territories are Erika Hickel a civilian of or are adjacent to Sant Quirze Safaja ?
OR((Q1354393,P27,c(Q1048835)), (Q15452,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1354393
relation P27
action find
entity Q15452
relation P47
type Q1048835
{'OR': [['Q1354393', 'P27', {'concept': 'Q1048835'}], ['Q15452', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q1354393 property:P27 ?u } UNION { resource:Q15452 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Sant Quirze Safaja Erika Hickel
action filter_type
action union
action find
entity Erika Hickel
relation country of citizenship
action find
entity Sant Quirze Safaja
relation shares border with
type political territorial entity
{'OR': [['Erika Hickel', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sant Quirze Safaja', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Erika_Hickel property:country_of_citizenship ?u } UNION { resource:Sant_Quirze_Safaja property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13823 Q15444 Q15398 Q183 Q15407 Q15409 Q15408
SYSTEM
Sant Martí de Centelles, Sant Feliu de Codines, Bigues i Riells, Germany, Castellcir, Figaró-Montmany, Castellterçol
Q13823 Q15444 Q15398 Q183 Q15407 Q15409 Q15408
OR((Q1354393,P27,c(Q1048835)), (Q15452,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1354393
relation P27
action find
entity Q15452
relation P47
type Q1048835
[ANSWERS] are Erika Hickel a civilian of or are adjacent to Sant Quirze Safaja
{'OR': [['Q1354393', 'P27', {'concept': 'Q1048835'}], ['Q15452', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q1354393 property:P27 ?u } UNION { resource:Q15452 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Sant Martí de Centelles Sant Feliu de Codines Bigues i Riells Germany Castellcir Figaró-Montmany Castellterçol
Sant Martí de Centelles, Sant Feliu de Codines, Bigues i Riells, Germany, Castellcir, Figaró-Montmany and Castellterçol are Erika Hickel a civilian of or are adjacent to Sant Quirze Safaja
Sant Martí de Centelles Sant Feliu de Codines Bigues i Riells Germany Castellcir Figaró-Montmany Castellterçol
action filter_type
action union
action find
entity Erika Hickel
relation country of citizenship
action find
entity Sant Quirze Safaja
relation shares border with
type political territorial entity
{'OR': [['Erika Hickel', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sant Quirze Safaja', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Erika_Hickel property:country_of_citizenship ?u } UNION { resource:Sant_Quirze_Safaja property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q40
P530
Q15617994 Q1048835 Q1048835
USER
How many political territories have ambassadorial relations with around the same number of administrative territories or political territories as Austria ?
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_multi_types
action find
entity Q40
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?w WHERE { { ?w property:P530 ?d . ?w rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } UNION { ?w rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 . ?w property:P530 ?d } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q40 property:P530 ?m . { { ?m rdf:type ontology:Q15617994 } UNION { ?m rdf:type ontology:Q1048835 } } } } . FILTER ( ?y = ?a ) }
Austria
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Austria
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?w WHERE { { ?w property:diplomatic_relation ?d . ?w rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } UNION { ?w rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:diplomatic_relation ?d } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Austria property:diplomatic_relation ?m . { { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?y = ?a ) }
[]
designation for an administrative territorial entity political territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_multi_types
action find
entity Q40
relation P530
type Q15617994
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?w WHERE { { ?w property:P530 ?d . ?w rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } UNION { ?w rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 . ?w property:P530 ?d } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q40 property:P530 ?m . { { ?m rdf:type ontology:Q15617994 } UNION { ?m rdf:type ontology:Q1048835 } } } } . FILTER ( ?y = ?a ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Austria
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) ?w WHERE { { ?w property:diplomatic_relation ?d . ?w rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } UNION { ?w rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:diplomatic_relation ?d } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Austria property:diplomatic_relation ?m . { { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?y = ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1142
Q7257 Q1047113 Q7278
USER
How many political parties promote around 3 ideologies and special fields ?
(c(Q7278),P1142,c(Q7257)|c(Q1047113))
action count
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 3
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q7257'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { FILTER ( ?f = 3 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?t WHERE { VALUES ( ?c ) { ( ontology:Q7257 ) ( ontology:Q1047113 ) } . ?h rdf:type ?c } GROUP BY ?t } }
action count
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 3
[{'concept': 'political party'}, 'political ideology', [{'concept': 'ideology'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { FILTER ( ?f = 3 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?t WHERE { VALUES ( ?c ) { ( ontology:ideology ) ( ontology:special_field ) } . ?h rdf:type ?c } GROUP BY ?t } }
[]
ideology special field political party
SYSTEM
4
Q196695 Q1628993 Q208242 Q150068
(c(Q7278),P1142,c(Q7257)|c(Q1047113))
action count
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 3
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q7257'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { FILTER ( ?f = 3 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?t WHERE { VALUES ( ?c ) { ( ontology:Q7257 ) ( ontology:Q1047113 ) } . ?h rdf:type ?c } GROUP BY ?t } }
Green League Democratic Union of Catalonia European People's Party Republican Left of Catalonia
4
action count
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 3
[{'concept': 'political party'}, 'political ideology', [{'concept': 'ideology'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { FILTER ( ?f = 3 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?t WHERE { VALUES ( ?c ) { ( ontology:ideology ) ( ontology:special_field ) } . ?h rdf:type ?c } GROUP BY ?t } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1639169 Q734324
P47 P17
Q1048835
USER
Which political territories do Braunschweig University of Technology belong to or are adjacent to Alfajarín ?
OR((Q734324,P17,c(Q1048835)), (Q1639169,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q734324
relation P17
action find
entity Q1639169
relation P47
type Q1048835
{'OR': [['Q734324', 'P17', {'concept': 'Q1048835'}], ['Q1639169', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q734324 property:P17 ?m } UNION { resource:Q1639169 property:P47 ?m } } . ?m rdf:type ontology:Q1048835 }
Alfajarín Braunschweig University of Technology
action filter_type
action union
action find
entity Braunschweig University of Technology
relation country
action find
entity Alfajarín
relation shares border with
type political territorial entity
{'OR': [['Braunschweig University of Technology', 'country', {'concept': 'political territorial entity'}], ['Alfajarín', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Braunschweig_University_of_Technology property:country ?m } UNION { resource:Alfajarín property:shares_border_with ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1638846 Q1639349 Q930157 Q183 Q1640155 Q1641115 Q1641053
SYSTEM
Villafranca de Ebro, Nuez de Ebro, Farlete, Germany, La Puebla de Alfindén, El Burgo de Ebro, Pastriz
Q1638846 Q1639349 Q930157 Q183 Q1640155 Q1641115 Q1641053
OR((Q734324,P17,c(Q1048835)), (Q1639169,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q734324
relation P17
action find
entity Q1639169
relation P47
type Q1048835
[ANSWERS] Braunschweig University of Technology belong to or are adjacent to Alfajarín
{'OR': [['Q734324', 'P17', {'concept': 'Q1048835'}], ['Q1639169', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q734324 property:P17 ?m } UNION { resource:Q1639169 property:P47 ?m } } . ?m rdf:type ontology:Q1048835 }
Villafranca de Ebro Nuez de Ebro Farlete Germany La Puebla de Alfindén El Burgo de Ebro Pastriz
Villafranca de Ebro, Nuez de Ebro, Farlete, Germany, La Puebla de Alfindén, El Burgo de Ebro and Pastriz Braunschweig University of Technology belong to or are adjacent to Alfajarín
Villafranca de Ebro Nuez de Ebro Farlete Germany La Puebla de Alfindén El Burgo de Ebro Pastriz
action filter_type
action union
action find
entity Braunschweig University of Technology
relation country
action find
entity Alfajarín
relation shares border with
type political territorial entity
{'OR': [['Braunschweig University of Technology', 'country', {'concept': 'political territorial entity'}], ['Alfajarín', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Braunschweig_University_of_Technology property:country ?m } UNION { resource:Alfajarín property:shares_border_with ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]