Simple Question (Direct)
Simple Question
Q235916
P21
Q290
USER
Which sex does Maria de Lourdes Pintasilgo possess ?
(Q235916,P21,c(Q290))
action filter_type
action find
entity Q235916
relation P21
type Q290
['Q235916', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q235916 property:P21 ?l }
Maria de Lourdes Pintasilgo
action filter_type
action find
entity Maria de Lourdes Pintasilgo
relation gender
type sex
['Maria de Lourdes Pintasilgo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Maria_de_Lourdes_Pintasilgo property:gender ?l }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q235916,P21,c(Q290))
action filter_type
action find
entity Q235916
relation P21
type Q290
Maria de Lourdes Pintasilgo possesses a [ANSWER]
['Q235916', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q235916 property:P21 ?l }
female
Maria de Lourdes Pintasilgo possesses a female
female
action filter_type
action find
entity Maria de Lourdes Pintasilgo
relation gender
type sex
['Maria de Lourdes Pintasilgo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Maria_de_Lourdes_Pintasilgo property:gender ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q235916
P20
Q56061
USER
Where did Maria de Lourdes Pintasilgo expire ?
(Q235916,P20,c(Q56061))
action filter_type
action find
entity Q235916
relation P20
type Q56061
['Q235916', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q235916 property:P20 ?w }
Maria de Lourdes Pintasilgo
action filter_type
action find
entity Maria de Lourdes Pintasilgo
relation place of death
type administrative territorial entity
['Maria de Lourdes Pintasilgo', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Maria_de_Lourdes_Pintasilgo property:place_of_death ?w }
[]
administrative territorial entity
Q597
SYSTEM
Lisbon
Q597
(Q235916,P20,c(Q56061))
action filter_type
action find
entity Q235916
relation P20
type Q56061
Maria de Lourdes Pintasilgo expired in [ANSWER]
['Q235916', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q235916 property:P20 ?w }
Lisbon
Maria de Lourdes Pintasilgo expired in Lisbon
Lisbon
action filter_type
action find
entity Maria de Lourdes Pintasilgo
relation place of death
type administrative territorial entity
['Maria de Lourdes Pintasilgo', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Maria_de_Lourdes_Pintasilgo property:place_of_death ?w }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q597 Q21527181
P19
Q502895
USER
Does Gerardo Cruz have location of birth at that administrative territory ?
(Q21527181,P19,Q597)
action is_in
entity Q21527181
action find
entity Q597
relation P19
['Q21527181', 'P19', 'Q597']
ASK WHERE { resource:Q597 property:P19 resource:Q21527181 }
Lisbon Gerardo Cruz
action is_in
entity Gerardo Cruz
action find
entity Lisbon
relation place of birth
['Gerardo Cruz', 'place of birth', 'Lisbon']
ASK WHERE { resource:Lisbon property:place_of_birth resource:Gerardo_Cruz }
[]
common name
SYSTEM
NO
(Q21527181,P19,Q597)
action is_in
entity Q21527181
action find
entity Q597
relation P19
[ANSWER]
['Q21527181', 'P19', 'Q597']
ASK WHERE { resource:Q597 property:P19 resource:Q21527181 }
No
action is_in
entity Gerardo Cruz
action find
entity Lisbon
relation place of birth
['Gerardo Cruz', 'place of birth', 'Lisbon']
ASK WHERE { resource:Lisbon property:place_of_birth resource:Gerardo_Cruz }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P291
Q56061 Q11032 Q1002697
USER
Which administrative territories are the publication regions of atleast 148 newspapers and periodical literatures ?
(c(Q11032)|c(Q1002697),P291,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
value 148
[[{'concept': 'Q11032'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?k WHERE { { ?r rdf:type ontology:Q11032 . ?k rdf:type ontology:Q56061 . ?r property:P291 ?k } UNION { ?r property:P291 ?k . ?k rdf:type ontology:Q56061 . ?r rdf:type ontology:Q1002697 } } GROUP BY ?k } . FILTER ( ?n >= 148 ) }
action atleast
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
value 148
[[{'concept': 'newspaper'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?k WHERE { { ?r rdf:type ontology:newspaper . ?k rdf:type ontology:administrative_territorial_entity . ?r property:place_of_publication ?k } UNION { ?r property:place_of_publication ?k . ?k rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:periodical_literature } } GROUP BY ?k } . FILTER ( ?n >= 148 ) }
[]
administrative territorial entity newspaper periodical literature
Q60 Q2807
SYSTEM
New York City, Madrid
Q60 Q2807
(c(Q11032)|c(Q1002697),P291,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
value 148
[ANSWERS] are the publication regions of atleast 148 newspapers and periodical literatures
[[{'concept': 'Q11032'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?k WHERE { { ?r rdf:type ontology:Q11032 . ?k rdf:type ontology:Q56061 . ?r property:P291 ?k } UNION { ?r property:P291 ?k . ?k rdf:type ontology:Q56061 . ?r rdf:type ontology:Q1002697 } } GROUP BY ?k } . FILTER ( ?n >= 148 ) }
New York City Madrid
New York City and Madrid are the publication regions of atleast 148 newspapers and periodical literatures
New York City Madrid
action atleast
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
value 148
[[{'concept': 'newspaper'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?k WHERE { { ?r rdf:type ontology:newspaper . ?k rdf:type ontology:administrative_territorial_entity . ?r property:place_of_publication ?k } UNION { ?r property:place_of_publication ?k . ?k rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:periodical_literature } } GROUP BY ?k } . FILTER ( ?n >= 148 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12168126 Q21527181
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Gerardo Cruz or are Lirik located in ?
OR((Q21527181,P27,c(Q15617994)), (Q12168126,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q21527181
relation P27
action find
entity Q12168126
relation P17
type Q15617994
{'OR': [['Q21527181', 'P27', {'concept': 'Q15617994'}], ['Q12168126', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q21527181 property:P27 ?x } UNION { resource:Q12168126 property:P17 ?x } } . ?x rdf:type ontology:Q15617994 }
Lirik Gerardo Cruz
action filter_type
action union
action find
entity Gerardo Cruz
relation country of citizenship
action find
entity Lirik
relation country
type designation for an administrative territorial entity
{'OR': [['Gerardo Cruz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lirik', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Gerardo_Cruz property:country_of_citizenship ?x } UNION { resource:Lirik property:country ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q252 Q800
SYSTEM
Indonesia, Costa Rica
Q252 Q800
OR((Q21527181,P27,c(Q15617994)), (Q12168126,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q21527181
relation P27
action find
entity Q12168126
relation P17
type Q15617994
[ANSWERS] are the native countriesof Gerardo Cruz or are Lirik located in
{'OR': [['Q21527181', 'P27', {'concept': 'Q15617994'}], ['Q12168126', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q21527181 property:P27 ?x } UNION { resource:Q12168126 property:P17 ?x } } . ?x rdf:type ontology:Q15617994 }
Indonesia Costa Rica
Indonesia and Costa Rica are the native countriesof Gerardo Cruz or are Lirik located in
Indonesia Costa Rica
action filter_type
action union
action find
entity Gerardo Cruz
relation country of citizenship
action find
entity Lirik
relation country
type designation for an administrative territorial entity
{'OR': [['Gerardo Cruz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lirik', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Gerardo_Cruz property:country_of_citizenship ?x } UNION { resource:Lirik property:country ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q72288
P276
Q1190554
USER
Which events have their location as Nola ?
(c(Q1190554),P276,Q72288)
action filter_type
action find_reverse
entity Q72288
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q72288']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q72288 . ?x rdf:type ontology:Q1190554 }
Nola
action filter_type
action find_reverse
entity Nola
relation location
type event
[{'concept': 'event'}, 'location', 'Nola']
SELECT DISTINCT ?x WHERE { ?x property:location resource:Nola . ?x rdf:type ontology:event }
[]
event
Q233402 Q925828 Q913464
SYSTEM
Battle of Nola (215 BC), Battle of Nola (216 BC), Battle of Nola (214 BC)
Q233402 Q925828 Q913464
(c(Q1190554),P276,Q72288)
action filter_type
action find_reverse
entity Q72288
relation P276
type Q1190554
[ANSWERS] have their location as Nola
[{'concept': 'Q1190554'}, 'P276', 'Q72288']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q72288 . ?x rdf:type ontology:Q1190554 }
Battle of Nola (215 BC) Battle of Nola (216 BC) Battle of Nola (214 BC)
Battle of Nola (215 BC), Battle of Nola (216 BC) and Battle of Nola (214 BC) have their location as Nola
Battle of Nola (215 BC) Battle of Nola (216 BC) Battle of Nola (214 BC)
action filter_type
action find_reverse
entity Nola
relation location
type event
[{'concept': 'event'}, 'location', 'Nola']
SELECT DISTINCT ?x WHERE { ?x property:location resource:Nola . ?x rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q233402 Q925828 Q913464
P361
Q350604
USER
Which armed conflicts are those events a portion of ?
(Q233402,P361,c(Q350604)) (Q925828,P361,c(Q350604)) (Q913464,P361,c(Q350604))
action filter_type
action find
entity prev_answer
relation P361
type Q350604
['Q233402', 'P361', {'concept': 'Q350604'}] ['Q925828', 'P361', {'concept': 'Q350604'}] ['Q913464', 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?s WHERE { ?f property:P361 ?s . ?s rdf:type ontology:Q350604 . VALUES ( ?f ) { ( resource:Q233402 ) ( resource:Q925828 ) ( resource:Q913464 ) } }
Battle of Nola (215 BC) Battle of Nola (216 BC) Battle of Nola (214 BC)
action filter_type
action find
entity prev_answer
relation part of
type armed conflict
['Battle of Nola (215 BC)', 'part of', {'concept': 'armed conflict'}] ['Battle of Nola (216 BC)', 'part of', {'concept': 'armed conflict'}] ['Battle of Nola (214 BC)', 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?s WHERE { ?f property:part_of ?s . ?s rdf:type ontology:armed_conflict . VALUES ( ?f ) { ( resource:Battle_of_Nola_(215_BC) ) ( resource:Battle_of_Nola_(216_BC) ) ( resource:Battle_of_Nola_(214_BC) ) } }
[]
armed conflict
Q6271 Q6271 Q6271
SYSTEM
Second Punic War
Q6271 Q6271 Q6271
(Q233402,P361,c(Q350604)) (Q925828,P361,c(Q350604)) (Q913464,P361,c(Q350604))
action filter_type
action find
entity prev_answer
relation P361
type Q350604
[ANSWER], [ANSWER] and [ANSWER] are those events a portion of
['Q233402', 'P361', {'concept': 'Q350604'}] ['Q925828', 'P361', {'concept': 'Q350604'}] ['Q913464', 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?s WHERE { ?f property:P361 ?s . ?s rdf:type ontology:Q350604 . VALUES ( ?f ) { ( resource:Q233402 ) ( resource:Q925828 ) ( resource:Q913464 ) } }
Second Punic War Second Punic War Second Punic War
Second Punic War, Second Punic War and Second Punic War are those events a portion of
Second Punic War Second Punic War Second Punic War
action filter_type
action find
entity prev_answer
relation part of
type armed conflict
['Battle of Nola (215 BC)', 'part of', {'concept': 'armed conflict'}] ['Battle of Nola (216 BC)', 'part of', {'concept': 'armed conflict'}] ['Battle of Nola (214 BC)', 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?s WHERE { ?f property:part_of ?s . ?s rdf:type ontology:armed_conflict . VALUES ( ?f ) { ( resource:Battle_of_Nola_(215_BC) ) ( resource:Battle_of_Nola_(216_BC) ) ( resource:Battle_of_Nola_(214_BC) ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6271
P710
Q502895
USER
Which people were participants of Second Punic War ?
(Q6271,P710,c(Q502895))
action filter_type
action find
entity Q6271
relation P710
type Q502895
['Q6271', 'P710', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q6271 property:P710 ?s }
Second Punic War
action filter_type
action find
entity Second Punic War
relation participant
type common name
['Second Punic War', 'participant', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Second_Punic_War property:participant ?s }
[]
common name
Q2253 Q36456 Q3293507
SYSTEM
Scipio Africanus, Hannibal, Publius Cornelius Scipio
Q2253 Q3293507 Q274545 Q36456 Q315274 Q432244
(Q6271,P710,c(Q502895))
action filter_type
action find
entity Q6271
relation P710
type Q502895
[ANSWERS] were participants of Second Punic War
['Q6271', 'P710', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q6271 property:P710 ?s }
Scipio Africanus Publius Cornelius Scipio Fabius Maximus Hannibal Gaius Terentius Varro Lucius Aemilius Paullus
Scipio Africanus, Hannibal and Publius Cornelius Scipio were participants of Second Punic War
Scipio Africanus Hannibal Publius Cornelius Scipio
action filter_type
action find
entity Second Punic War
relation participant
type common name
['Second Punic War', 'participant', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Second_Punic_War property:participant ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36456
P410
Q4189293
USER
Which is the title held by Hannibal ?
(Q36456,P410,c(Q4189293))
action filter_type
action find
entity Q36456
relation P410
type Q4189293
['Q36456', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q4189293 . resource:Q36456 property:P410 ?u }
Hannibal
action filter_type
action find
entity Hannibal
relation military rank
type title
['Hannibal', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:title . resource:Hannibal property:military_rank ?u }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q36456,P410,c(Q4189293))
action filter_type
action find
entity Q36456
relation P410
type Q4189293
[ANSWER] the title held by Hannibal
['Q36456', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q4189293 . resource:Q36456 property:P410 ?u }
general officer
General officer the title held by Hannibal
general officer
action filter_type
action find
entity Hannibal
relation military rank
type title
['Hannibal', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:title . resource:Hannibal property:military_rank ?u }
[]