Simple Question (Direct)
Simple Question
Q1338991
P463
Q874405
USER
Which social group had Raimundo Correia as its member ?
(Q1338991,P463,c(Q874405))
action filter_type
action find
entity Q1338991
relation P463
type Q874405
['Q1338991', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?f WHERE { resource:Q1338991 property:P463 ?f . ?f rdf:type ontology:Q874405 }
Raimundo Correia
action filter_type
action find
entity Raimundo Correia
relation member of
type social group
['Raimundo Correia', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?f WHERE { resource:Raimundo_Correia property:member_of ?f . ?f rdf:type ontology:social_group }
[]
social group
Q337224
SYSTEM
Academia Brasileira de Letras
Q337224
(Q1338991,P463,c(Q874405))
action filter_type
action find
entity Q1338991
relation P463
type Q874405
[ANSWER] had Raimundo Correia as its member
['Q1338991', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?f WHERE { resource:Q1338991 property:P463 ?f . ?f rdf:type ontology:Q874405 }
Academia Brasileira de Letras
Academia Brasileira de Letras had Raimundo Correia as its member
Academia Brasileira de Letras
action filter_type
action find
entity Raimundo Correia
relation member of
type social group
['Raimundo Correia', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?f WHERE { resource:Raimundo_Correia property:member_of ?f . ?f rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q337224
P112
Q502895
USER
Which person founded that social group ?
(Q337224,P112,c(Q502895))
action filter_type
action find
entity Q337224
relation P112
type Q502895
['Q337224', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q337224 property:P112 ?i . ?i rdf:type ontology:Q502895 }
Academia Brasileira de Letras
action filter_type
action find
entity Academia Brasileira de Letras
relation founder
type common name
['Academia Brasileira de Letras', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Academia_Brasileira_de_Letras property:founder ?i . ?i rdf:type ontology:common_name }
[]
common name
Q311145
SYSTEM
Joaquim Maria Machado de Assis
Q311145
(Q337224,P112,c(Q502895))
action filter_type
action find
entity Q337224
relation P112
type Q502895
[ANSWER] founded that social group
['Q337224', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q337224 property:P112 ?i . ?i rdf:type ontology:Q502895 }
Joaquim Maria Machado de Assis
Joaquim Maria Machado de Assis founded that social group
Joaquim Maria Machado de Assis
action filter_type
action find
entity Academia Brasileira de Letras
relation founder
type common name
['Academia Brasileira de Letras', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Academia_Brasileira_de_Letras property:founder ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5193483
Q502895
USER
And what about Culture and Media Institute?
(Q5193483,P112,c(Q502895))
action filter_type
action find
entity Q5193483
relation P112
type Q502895
['Q5193483', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q5193483 property:P112 ?r }
Culture and Media Institute
action filter_type
action find
entity Culture and Media Institute
relation founder
type common name
['Culture and Media Institute', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Culture_and_Media_Institute property:founder ?r }
[]
common name
Q6456367
SYSTEM
L. Brent Bozell III
Q6456367
(Q5193483,P112,c(Q502895))
action filter_type
action find
entity Q5193483
relation P112
type Q502895
[ANSWER]
['Q5193483', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q5193483 property:P112 ?r }
L. Brent Bozell III
L. Brent Bozell III
action filter_type
action find
entity Culture and Media Institute
relation founder
type common name
['Culture and Media Institute', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Culture_and_Media_Institute property:founder ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q311145
P50
Q2342494 Q7725634
USER
How many collectables or literary works were written by Joaquim Maria Machado de Assis ?
(c(Q2342494),P50,Q311145) (c(Q7725634),P50,Q311145)
action count
action union
action filter_type
action find_reverse
entity Q311145
relation P50
type Q2342494
action filter_type
action find_reverse
entity Q311145
relation P50
type Q7725634
[{'concept': 'Q2342494'}, 'P50', 'Q311145'] [{'concept': 'Q7725634'}, 'P50', 'Q311145']
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?p ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?s rdf:type ?p }
Joaquim Maria Machado de Assis
action count
action union
action filter_type
action find_reverse
entity Joaquim Maria Machado de Assis
relation author
type collectable
action filter_type
action find_reverse
entity Joaquim Maria Machado de Assis
relation author
type literary work
[{'concept': 'collectable'}, 'author', 'Joaquim Maria Machado de Assis'] [{'concept': 'literary work'}, 'author', 'Joaquim Maria Machado de Assis']
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?p ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?s rdf:type ?p }
[]
collectable literary work
SYSTEM
8
Q7721536 Q4658429 Q1464493 Q7316030 Q5703513 Q17197917 Q31137 Q240087
(c(Q2342494),P50,Q311145) (c(Q7725634),P50,Q311145)
action count
action union
action filter_type
action find_reverse
entity Q311145
relation P50
type Q2342494
action filter_type
action find_reverse
entity Q311145
relation P50
type Q7725634
[ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q311145'] [{'concept': 'Q7725634'}, 'P50', 'Q311145']
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?p ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?s rdf:type ?p }
The Case of the Stick A Mão e a Luva The Posthumous Memoirs of Bras Cubas Ressurreição Helena Sinhá O alienista Quincas Borba
8
action count
action union
action filter_type
action find_reverse
entity Joaquim Maria Machado de Assis
relation author
type collectable
action filter_type
action find_reverse
entity Joaquim Maria Machado de Assis
relation author
type literary work
[{'concept': 'collectable'}, 'author', 'Joaquim Maria Machado de Assis'] [{'concept': 'literary work'}, 'author', 'Joaquim Maria Machado de Assis']
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?p ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?s rdf:type ?p }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3251673 Q1338991
P27
Q15617994
USER
Which administrative territories do Raimundo Correia or Andreína Goetz belong to ?
OR((Q1338991,P27,c(Q15617994)), (Q3251673,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1338991
relation P27
action find
entity Q3251673
relation P27
type Q15617994
{'OR': [['Q1338991', 'P27', {'concept': 'Q15617994'}], ['Q3251673', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1338991 property:P27 ?m } UNION { resource:Q3251673 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Andreína Goetz Raimundo Correia
action filter_type
action union
action find
entity Raimundo Correia
relation country of citizenship
action find
entity Andreína Goetz
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Raimundo Correia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Andreína Goetz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Raimundo_Correia property:country_of_citizenship ?m } UNION { resource:Andreína_Goetz property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q717
SYSTEM
Brazil, Venezuela
Q155 Q717
OR((Q1338991,P27,c(Q15617994)), (Q3251673,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1338991
relation P27
action find
entity Q3251673
relation P27
type Q15617994
[ANSWERS] Raimun Correia or Andreína Goetz belong to
{'OR': [['Q1338991', 'P27', {'concept': 'Q15617994'}], ['Q3251673', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1338991 property:P27 ?m } UNION { resource:Q3251673 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Brazil Venezuela
Brazil and Venezuela Raimun Correia or Andreína Goetz belong to
Brazil Venezuela
action filter_type
action union
action find
entity Raimundo Correia
relation country of citizenship
action find
entity Andreína Goetz
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Raimundo Correia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Andreína Goetz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Raimundo_Correia property:country_of_citizenship ?m } UNION { resource:Andreína_Goetz property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q271839
P17
Q83620
USER
Are Pan-American Highway located in those administrative territories ?
(Q271839,P17,Q155) (Q271839,P17,Q717)
action is_in
entity prev_answer
action find
entity Q271839
relation P17
['Q271839', 'P17', 'Q155'] ['Q271839', 'P17', 'Q717']
ASK WHERE { VALUES ( ?c ) { ( resource:Q155 ) ( resource:Q717 ) } . resource:Q271839 property:P17 ?c }
Pan-American Highway
action is_in
entity prev_answer
action find
entity Pan-American Highway
relation country
['Pan-American Highway', 'country', 'Brazil'] ['Pan-American Highway', 'country', 'Venezuela']
ASK WHERE { VALUES ( ?c ) { ( resource:Brazil ) ( resource:Venezuela ) } . resource:Pan-American_Highway property:country ?c }
[]
thoroughfare
SYSTEM
YES
(Q271839,P17,Q155) (Q271839,P17,Q717)
action is_in
entity prev_answer
action find
entity Q271839
relation P17
[ANSWER]
['Q271839', 'P17', 'Q155'] ['Q271839', 'P17', 'Q717']
ASK WHERE { VALUES ( ?c ) { ( resource:Q155 ) ( resource:Q717 ) } . resource:Q271839 property:P17 ?c }
Yes
action is_in
entity prev_answer
action find
entity Pan-American Highway
relation country
['Pan-American Highway', 'country', 'Brazil'] ['Pan-American Highway', 'country', 'Venezuela']
ASK WHERE { VALUES ( ?c ) { ( resource:Brazil ) ( resource:Venezuela ) } . resource:Pan-American_Highway property:country ?c }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?a ) WHERE { ?t property:P530 ?b . ?t rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?t } } . { SELECT DISTINCT ?o ( COUNT ( ?r ) AS ?p ) WHERE { ?o property:P530 ?r . ?o rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?p = ?q ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?a ) WHERE { ?t property:diplomatic_relation ?b . ?t rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } } . { SELECT DISTINCT ?o ( COUNT ( ?r ) AS ?p ) WHERE { ?o property:diplomatic_relation ?r . ?o rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?p = ?q ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?a ) WHERE { ?t property:P530 ?b . ?t rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?t } } . { SELECT DISTINCT ?o ( COUNT ( ?r ) AS ?p ) WHERE { ?o property:P530 ?r . ?o rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?p = ?q ) }
Germany
Germany have diplomatic relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?a ) WHERE { ?t property:diplomatic_relation ?b . ?t rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } } . { SELECT DISTINCT ?o ( COUNT ( ?r ) AS ?p ) WHERE { ?o property:diplomatic_relation ?r . ?o rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?p = ?q ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q183 Q16
P530
Q1048835
USER
Does Canada have diplomatic relationships with that one ?
(Q183,P530,Q16)
action is_in
entity Q16
action find
entity Q183
relation P530
['Q183', 'P530', 'Q16']
ASK WHERE { resource:Q183 property:P530 resource:Q16 }
Germany Canada
action is_in
entity Canada
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q16)
action is_in
entity Q16
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q16']
ASK WHERE { resource:Q183 property:P530 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Canada }
[]