Simple Question (Direct)
Simple Question
Q4020093
P19
Q56061
USER
Which administrative territory is the birthplace of William Machado de Oliveira ?
(Q4020093,P19,c(Q56061))
action filter_type
action find
entity Q4020093
relation P19
type Q56061
['Q4020093', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q4020093 property:P19 ?v . ?v rdf:type ontology:Q56061 }
William Machado de Oliveira
action filter_type
action find
entity William Machado de Oliveira
relation place of birth
type administrative territorial entity
['William Machado de Oliveira', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:William_Machado_de_Oliveira property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q42800
SYSTEM
Belo Horizonte
Q42800
(Q4020093,P19,c(Q56061))
action filter_type
action find
entity Q4020093
relation P19
type Q56061
[ANSWER] is the birthplace of William Machado de Oliveira
['Q4020093', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q4020093 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Belo Horizonte
Belo Horizonte is the birthplace of William Machado de Oliveira
Belo Horizonte
action filter_type
action find
entity William Machado de Oliveira
relation place of birth
type administrative territorial entity
['William Machado de Oliveira', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:William_Machado_de_Oliveira property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42800
P17
Q15617994
USER
Which administrative territory is that administrative territory a part of ?
(Q42800,P17,c(Q15617994))
action filter_type
action find
entity Q42800
relation P17
type Q15617994
['Q42800', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q42800 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Belo Horizonte
action filter_type
action find
entity Belo Horizonte
relation country
type designation for an administrative territorial entity
['Belo Horizonte', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Belo_Horizonte property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q42800,P17,c(Q15617994))
action filter_type
action find
entity Q42800
relation P17
type Q15617994
[ANSWER] is that administrative territory a part of
['Q42800', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q42800 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Brazil
Brazil is that administrative territory a part of
Brazil
action filter_type
action find
entity Belo Horizonte
relation country
type designation for an administrative territorial entity
['Belo Horizonte', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Belo_Horizonte property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3825413
Q15617994
USER
And how about Pausa District?
(Q3825413,P17,c(Q15617994))
action filter_type
action find
entity Q3825413
relation P17
type Q15617994
['Q3825413', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3825413 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Pausa District
action filter_type
action find
entity Pausa District
relation country
type designation for an administrative territorial entity
['Pausa District', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Pausa_District property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419
SYSTEM
Peru
Q419
(Q3825413,P17,c(Q15617994))
action filter_type
action find
entity Q3825413
relation P17
type Q15617994
[ANSWER]
['Q3825413', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3825413 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Peru
Peru
action filter_type
action find
entity Pausa District
relation country
type designation for an administrative territorial entity
['Pausa District', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Pausa_District property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with around 34 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 34
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?l ) WHERE { ?c property:P530 ?m . ?c rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?l = 34 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 34
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?l ) WHERE { ?c property:diplomatic_relation ?m . ?c rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?l = 34 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 34
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?l ) WHERE { ?c property:P530 ?m . ?c rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?l = 34 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 34
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?l ) WHERE { ?c property:diplomatic_relation ?m . ?c rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?l = 34 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P169
Q502895 Q11032 Q874405
USER
How many people are the chief executives of exactly 1 newspapers or social groups ?
(c(Q11032)|c(Q874405),P169,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q11032
action find_reverse_tuple_counts
relation P169
type Q502895
type Q874405
value 1
[[{'concept': 'Q11032'}, {'concept': 'Q874405'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?l ) WHERE { VALUES ( ?z ) { ( ontology:Q11032 ) ( ontology:Q874405 ) } . ?w rdf:type ?z } GROUP BY ?k } }
action count
action equal
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type newspaper
action find_reverse_tuple_counts
relation chief executive officer
type common name
type social group
value 1
[[{'concept': 'newspaper'}, {'concept': 'social group'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?l ) WHERE { VALUES ( ?z ) { ( ontology:newspaper ) ( ontology:social_group ) } . ?w rdf:type ?z } GROUP BY ?k } }
[]
common name newspaper social group
SYSTEM
31
Q21000395 Q15966868 Q1929047 Q1670490 Q4487 Q103473 Q16188729 Q16163305 Q15293536 Q16876158 Q20203686 Q23048203 Q8051043 Q6070096 Q5704388 Q6161101 Q3185348 Q500976 Q659356 Q26908223 Q7456439 Q11928620 Q23759747 Q4655570 Q4935260 Q96270 Q11935031 Q18091304 Q776008 Q17114394 Q19878836
(c(Q11032)|c(Q874405),P169,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q11032
action find_reverse_tuple_counts
relation P169
type Q502895
type Q874405
value 1
[ANSWER]
[[{'concept': 'Q11032'}, {'concept': 'Q874405'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?l ) WHERE { VALUES ( ?z ) { ( ontology:Q11032 ) ( ontology:Q874405 ) } . ?w rdf:type ?z } GROUP BY ?k } }
Franz Borgias Mayer David Schraven Michael Rockenschaub Wolfgang Büchner Federico Gamboa Georg August Zenker Jaume Claramunt i Mesa Albert Royo i Mariné Martyn Harrow Ryan Merkley José María de Mora Youssef al-Raissouni Yechiel Eckstein Pedro Sala y Villaret Helga Stephenson Vicente Díez Canseco Joseph Mayer Andreas Treichl Luis José Sartorius, 1st Count of San Luis Alireza Salehi Nejad Seth Berkley Josep Laribal Lastortras Alisa Miller Christine Loh Bobby Koch Richard Kund Manuel de Lasarte i Rodríguez-Cardoso Victor Galasyuk Nasser Al-Khelaifi Randi S. Øgrey Colin Seery
31
action count
action equal
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type newspaper
action find_reverse_tuple_counts
relation chief executive officer
type common name
type social group
value 1
[[{'concept': 'newspaper'}, {'concept': 'social group'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?l ) WHERE { VALUES ( ?z ) { ( ontology:newspaper ) ( ontology:social_group ) } . ?w rdf:type ?z } GROUP BY ?k } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with atleast 80 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 80
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?l ) WHERE { ?w property:P530 ?q . ?w rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?l >= 80 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 80
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?l ) WHERE { ?w property:diplomatic_relation ?q . ?w rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?l >= 80 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 80
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?l ) WHERE { ?w property:P530 ?q . ?w rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?l >= 80 ) }
Germany Australia
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 80
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?l ) WHERE { ?w property:diplomatic_relation ?q . ?w rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?l >= 80 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q419
P530
Q1048835 Q15617994
USER
How many political territories or administrative territories have diplomatic relations with Peru ?
(Q419,P530,c(Q1048835)) (Q419,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q419
relation P530
type Q1048835
action filter_type
action find
entity Q419
relation P530
type Q15617994
['Q419', 'P530', {'concept': 'Q1048835'}] ['Q419', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?u rdf:type ?p }
Peru
action count
action union
action filter_type
action find
entity Peru
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Peru
relation diplomatic relation
type designation for an administrative territorial entity
['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?u rdf:type ?p }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
4
Q155 Q408 Q38 Q183
(Q419,P530,c(Q1048835)) (Q419,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q419
relation P530
type Q1048835
action filter_type
action find
entity Q419
relation P530
type Q15617994
[ANSWER]
['Q419', 'P530', {'concept': 'Q1048835'}] ['Q419', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?u rdf:type ?p }
Brazil Australia Italy Germany
4
action count
action union
action filter_type
action find
entity Peru
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Peru
relation diplomatic relation
type designation for an administrative territorial entity
['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?u rdf:type ?p }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q21956214 Q419
P530 P17
Q1048835
USER
Which political territories have diplomatic relationships with Peru and are not Colliboi Beach present in ?
AND((Q419,P530,c(Q1048835)), NOT((Q21956214,P17,c(Q1048835))))
action filter_type
action difference
action find
entity Q419
relation P530
action find
entity Q21956214
relation P17
type Q1048835
{'AND': [['Q419', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q21956214', 'P17', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . resource:Q419 property:P530 ?f . FILTER NOT EXISTS { resource:Q21956214 property:P17 ?f } }
Colliboi Beach Peru
action filter_type
action difference
action find
entity Peru
relation diplomatic relation
action find
entity Colliboi Beach
relation country
type political territorial entity
{'AND': [['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Colliboi Beach', 'country', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Peru property:diplomatic_relation ?f . FILTER NOT EXISTS { resource:Colliboi_Beach property:country ?f } }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q419,P530,c(Q1048835)), NOT((Q21956214,P17,c(Q1048835))))
action filter_type
action difference
action find
entity Q419
relation P530
action find
entity Q21956214
relation P17
type Q1048835
[ANSWER] have diplomatic relationships with Peru and are not Colliboi Beach present in
{'AND': [['Q419', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q21956214', 'P17', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . resource:Q419 property:P530 ?f . FILTER NOT EXISTS { resource:Q21956214 property:P17 ?f } }
Germany
Germany have diplomatic relationships with Peru and are not Colliboi Beach present in
Germany
action filter_type
action difference
action find
entity Peru
relation diplomatic relation
action find
entity Colliboi Beach
relation country
type political territorial entity
{'AND': [['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Colliboi Beach', 'country', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Peru property:diplomatic_relation ?f . FILTER NOT EXISTS { resource:Colliboi_Beach property:country ?f } }
[]