Simple Question (Direct)
Simple Question
Q1599313
P106
Q12737077
USER
What do Heinrich Will do for a living ?
(Q1599313,P106,c(Q12737077))
action filter_type
action find
entity Q1599313
relation P106
type Q12737077
['Q1599313', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1599313 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Heinrich Will
action filter_type
action find
entity Heinrich Will
relation occupation
type occupation
['Heinrich Will', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Heinrich_Will property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q1622272 Q593644
SYSTEM
university teacher, chemist
Q1622272 Q593644
(Q1599313,P106,c(Q12737077))
action filter_type
action find
entity Q1599313
relation P106
type Q12737077
Heinrich do for a living the [ANSWERS] Will
['Q1599313', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1599313 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
university teacher chemist
Heinrich do for a living the university teacher and chemist Will
university teacher chemist
action filter_type
action find
entity Heinrich Will
relation occupation
type occupation
['Heinrich Will', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Heinrich_Will property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1599313
P27
Q1048835
USER
Which political territory is that person an inhabitant of ?
(Q1622272,P27,c(Q1048835)) (Q593644,P27,c(Q1048835))
action filter_type
action find
entity Q1599313
relation P27
type Q1048835
['Q1622272', 'P27', {'concept': 'Q1048835'}] ['Q593644', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q1599313 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Heinrich Will
action filter_type
action find
entity Heinrich Will
relation country of citizenship
type political territorial entity
['university teacher', 'country of citizenship', {'concept': 'political territorial entity'}] ['chemist', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Heinrich_Will property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1622272,P27,c(Q1048835)) (Q593644,P27,c(Q1048835))
action filter_type
action find
entity Q1599313
relation P27
type Q1048835
[ANSWER] is that person an inhabitant of
['Q1622272', 'P27', {'concept': 'Q1048835'}] ['Q593644', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q1599313 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Germany
Germany is that person an inhabitant of
Germany
action filter_type
action find
entity Heinrich Will
relation country of citizenship
type political territorial entity
['university teacher', 'country of citizenship', {'concept': 'political territorial entity'}] ['chemist', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Heinrich_Will property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P1427
Q1048835 Q2912397 Q31629
USER
Which political territories do around the same number of single-day races and types of sport start as that political territory ?
(c(Q2912397)|c(Q31629),P1427,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q2912397
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q31629
action count
action filter_multi_types
action find_reverse
entity Q183
relation P1427
type Q2912397
type Q31629
[[{'concept': 'Q2912397'}, {'concept': 'Q31629'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?u WHERE { { ?u rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q2912397 . ?c property:P1427 ?u } UNION { ?c property:P1427 ?u . ?u rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q31629 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P1427 resource:Q183 . { ?e rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2912397 ) ( ontology:Q31629 ) } } } } . FILTER ( ?d = ?h ) }
action approx
action union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type single-day race
action find_reverse_tuple_counts
relation start point
type political territorial entity
type type of sport
action count
action filter_multi_types
action find_reverse
entity Germany
relation start point
type single-day race
type type of sport
[[{'concept': 'single-day race'}, {'concept': 'type of sport'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?u WHERE { { ?u rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:single-day_race . ?c property:start_point ?u } UNION { ?c property:start_point ?u . ?u rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:type_of_sport } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:start_point resource:Germany . { ?e rdf:type ?k . VALUES ( ?k ) { ( ontology:single-day_race ) ( ontology:type_of_sport ) } } } } . FILTER ( ?d = ?h ) }
[]
political territorial entity single-day race type of sport
Q183 Q639412 Q55480
SYSTEM
Germany, Tarazona, Colmenar Viejo
Q1556707 Q55480 Q937763 Q183 Q301437 Q2264671 Q1628379 Q49661 Q536682 Q1765676 Q1442183 Q1766072 Q642046 Q1625868 Q956524 Q488555 Q1375842 Q739495 Q832991 Q474080 Q499184 Q1629539 Q1621191 Q668016 Q490638 Q913277 Q77433 Q601112 Q1374736 Q743741 Q484552 Q564773 Q639412 Q825883 Q1771143 Q987453
(c(Q2912397)|c(Q31629),P1427,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q2912397
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q31629
action count
action filter_multi_types
action find_reverse
entity Q183
relation P1427
type Q2912397
type Q31629
[ANSWERS] do around the same number of single-day races and types of sport start as that political territory
[[{'concept': 'Q2912397'}, {'concept': 'Q31629'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?u WHERE { { ?u rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q2912397 . ?c property:P1427 ?u } UNION { ?c property:P1427 ?u . ?u rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q31629 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P1427 resource:Q183 . { ?e rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2912397 ) ( ontology:Q31629 ) } } } } . FILTER ( ?d = ?h ) }
Vila Nova de Cacela Colmenar Viejo Graus Germany Priego de Córdoba El Palomar Mairena del Alcor Mauren Belorado Torredelcampo Sober Santo Domingo de Silos Calahorra Alcañices Maella Baeza Ortigueira Vilanova de Arousa Sóller Amorebieta-Etxano Roquetas de Mar Salvaterra de Miño A Estrada Iurreta Almendralejo Mazarrón Leganés Pollença Lalín Felanitx Algeciras Alhendín Tarazona Valls Carboneras de Guadazaón San Javier
Germany, Tarazona and Colmenar Viejo do around the same number of single-day races and types of sport start as that political territory
Germany Tarazona Colmenar Viejo
action approx
action union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type single-day race
action find_reverse_tuple_counts
relation start point
type political territorial entity
type type of sport
action count
action filter_multi_types
action find_reverse
entity Germany
relation start point
type single-day race
type type of sport
[[{'concept': 'single-day race'}, {'concept': 'type of sport'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?u WHERE { { ?u rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:single-day_race . ?c property:start_point ?u } UNION { ?c property:start_point ?u . ?u rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:type_of_sport } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:start_point resource:Germany . { ?e rdf:type ?k . VALUES ( ?k ) { ( ontology:single-day_race ) ( ontology:type_of_sport ) } } } } . FILTER ( ?d = ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have tactful political relations with atleast 5 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?c >= 5 ) . { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?c ) WHERE { ?d rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?d property:P530 ?e } GROUP BY ?d } }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?c >= 5 ) . { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?c ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?e } GROUP BY ?d } }
[]
political territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?c >= 5 ) . { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?c ) WHERE { ?d rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?d property:P530 ?e } GROUP BY ?d } }
Germany Australia
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?c >= 5 ) . { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?c ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?e } GROUP BY ?d } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q639412
P1313
Q12737077
USER
Which occupation is fulfilled by Tarazona ?
(Q639412,P1313,c(Q12737077))
action filter_type
action find
entity Q639412
relation P1313
type Q12737077
['Q639412', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q639412 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
Tarazona
action filter_type
action find
entity Tarazona
relation office held by head of government
type occupation
['Tarazona', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Tarazona property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q26699340
SYSTEM
mayor of Tarazona
Q26699340
(Q639412,P1313,c(Q12737077))
action filter_type
action find
entity Q639412
relation P1313
type Q12737077
The [ANSWER] is fulfilled by Tarazona
['Q639412', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q639412 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
mayor of Tarazona
The mayor of Tarazona is fulfilled by Tarazona
mayor of Tarazona
action filter_type
action find
entity Tarazona
relation office held by head of government
type occupation
['Tarazona', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Tarazona property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q26699340 Q29 Q652852
P17
Q15617994
USER
Is that occupation located in Spain and Kreien ?
(Q26699340,P17,Q29) (Q26699340,P17,Q652852)
action is_in
entity Q26699340
action intersection
action find_reverse
entity Q29
relation P17
action find_reverse
entity Q652852
relation P17
['Q26699340', 'P17', 'Q29'] ['Q26699340', 'P17', 'Q652852']
ASK WHERE { resource:Q26699340 property:P17 resource:Q29 . resource:Q26699340 property:P17 resource:Q652852 }
mayor of Tarazona Spain Kreien
action is_in
entity mayor of Tarazona
action intersection
action find_reverse
entity Spain
relation country
action find_reverse
entity Kreien
relation country
['mayor of Tarazona', 'country', 'Spain'] ['mayor of Tarazona', 'country', 'Kreien']
ASK WHERE { resource:mayor_of_Tarazona property:country resource:Spain . resource:mayor_of_Tarazona property:country resource:Kreien }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q26699340,P17,Q29) (Q26699340,P17,Q652852)
action is_in
entity Q26699340
action intersection
action find_reverse
entity Q29
relation P17
action find_reverse
entity Q652852
relation P17
[ANSWER]
['Q26699340', 'P17', 'Q29'] ['Q26699340', 'P17', 'Q652852']
ASK WHERE { resource:Q26699340 property:P17 resource:Q29 . resource:Q26699340 property:P17 resource:Q652852 }
YES and NO respectively
action is_in
entity mayor of Tarazona
action intersection
action find_reverse
entity Spain
relation country
action find_reverse
entity Kreien
relation country
['mayor of Tarazona', 'country', 'Spain'] ['mayor of Tarazona', 'country', 'Kreien']
ASK WHERE { resource:mayor_of_Tarazona property:country resource:Spain . resource:mayor_of_Tarazona property:country resource:Kreien }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q639412
P1001
Q12737077
USER
Which occupation presides the jurisdiction over Tarazona ?
(c(Q12737077),P1001,Q639412)
action filter_type
action find_reverse
entity Q639412
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q639412']
SELECT DISTINCT ?f WHERE { ?f property:P1001 resource:Q639412 . ?f rdf:type ontology:Q12737077 }
Tarazona
action filter_type
action find_reverse
entity Tarazona
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Tarazona']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction resource:Tarazona . ?f rdf:type ontology:occupation }
[]
occupation
Q26699340
SYSTEM
mayor of Tarazona
Q26699340
(c(Q12737077),P1001,Q639412)
action filter_type
action find_reverse
entity Q639412
relation P1001
type Q12737077
The [ANSWER] presides the jurisdiction over Tarazona
[{'concept': 'Q12737077'}, 'P1001', 'Q639412']
SELECT DISTINCT ?f WHERE { ?f property:P1001 resource:Q639412 . ?f rdf:type ontology:Q12737077 }
mayor of Tarazona
The mayor of Tarazona presides the jurisdiction over Tarazona
mayor of Tarazona
action filter_type
action find_reverse
entity Tarazona
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Tarazona']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction resource:Tarazona . ?f rdf:type ontology:occupation }
[]