Simple Question (Direct)
Simple Question
Q3148181
P7
Q502895
USER
Who is Ignace Nau a sibling of ?
(Q3148181,P7,c(Q502895))
action filter_type
action find
entity Q3148181
relation P7
type Q502895
['Q3148181', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3148181 property:P7 ?h . ?h rdf:type ontology:Q502895 }
Ignace Nau
action filter_type
action find
entity Ignace Nau
relation brother
type common name
['Ignace Nau', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Ignace_Nau property:brother ?h . ?h rdf:type ontology:common_name }
[]
common name
Q83004
SYSTEM
Emile Nau
Q83004
(Q3148181,P7,c(Q502895))
action filter_type
action find
entity Q3148181
relation P7
type Q502895
Ignace Nau is a sibling of [ANSWER] of
['Q3148181', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3148181 property:P7 ?h . ?h rdf:type ontology:Q502895 }
Emile Nau
Ignace Nau is a sibling of Emile Nau of
Emile Nau
action filter_type
action find
entity Ignace Nau
relation brother
type common name
['Ignace Nau', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Ignace_Nau property:brother ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q83004
P20
Q515
USER
Where did the demise of that person occur ?
(Q83004,P20,c(Q515))
action filter_type
action find
entity Q83004
relation P20
type Q515
['Q83004', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q515 . resource:Q83004 property:P20 ?h }
Emile Nau
action filter_type
action find
entity Emile Nau
relation place of death
type city
['Emile Nau', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:city . resource:Emile_Nau property:place_of_death ?h }
[]
city
Q34261
SYSTEM
Port-au-Prince
Q34261
(Q83004,P20,c(Q515))
action filter_type
action find
entity Q83004
relation P20
type Q515
The demise of that person occurred in [ANSWER]
['Q83004', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q515 . resource:Q83004 property:P20 ?h }
Port-au-Prince
The demise of that person occurred in Port-au-Prince
Port-au-Prince
action filter_type
action find
entity Emile Nau
relation place of death
type city
['Emile Nau', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:city . resource:Emile_Nau property:place_of_death ?h }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q973325
P190
Q515 Q1048835
USER
How many political territories are partner town of greater number of cities than Villanueva de la Cañada ?
(c(Q1048835),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q1048835
type Q515
action count
action filter_type
action find
entity Q973325
relation P190
type Q1048835
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?f ) WHERE { ?n rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q515 . ?n property:P190 ?p } GROUP BY ?n } . FILTER ( ?f > ?z ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Q973325 property:P190 ?h . ?h rdf:type ontology:Q1048835 } } }
Villanueva de la Cañada
action count
action greater
action find_tuple_counts
relation sister city
type political territorial entity
type city
action count
action filter_type
action find
entity Villanueva de la Cañada
relation sister city
type political territorial entity
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?f ) WHERE { ?n rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:city . ?n property:sister_city ?p } GROUP BY ?n } . FILTER ( ?f > ?z ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Villanueva_de_la_Cañada property:sister_city ?h . ?h rdf:type ontology:political_territorial_entity } } }
[]
city political territorial entity
SYSTEM
43
Q926713 Q433632 Q842713 Q30002 Q168376 Q164867 Q11746 Q4970 Q193780 Q478818 Q180981 Q15174 Q489839 Q840373 Q170322 Q42956 Q189848 Q436491 Q1917834 Q572800 Q170247 Q615722 Q696797 Q488555 Q92161 Q5978 Q825883 Q11720 Q12534 Q353618 Q42780 Q16572 Q5783 Q77433 Q318314 Q74881 Q5826 Q240 Q192387 Q201149 Q68744 Q714613 Q47593
(c(Q1048835),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q1048835
type Q515
action count
action filter_type
action find
entity Q973325
relation P190
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?f ) WHERE { ?n rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q515 . ?n property:P190 ?p } GROUP BY ?n } . FILTER ( ?f > ?z ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Q973325 property:P190 ?h . ?h rdf:type ontology:Q1048835 } } }
Parintins Santa Cruz de La Palma Itajaí Chengdu Vitória Rügen Wuhan Hangzhou Almuñécar São José dos Pinhais Kirovohrad Oblast Shenzhen Torrejón de Ardoz Valdemoro Qingdao Harbin Guernica Altea Albaida Alcañiz Jinan Santa Fe Balaguer Baeza Changchun Hildesheim Valls Shenyang Sant Pol de Mar Adeje Ningbo Guangzhou Andalusia Leganés Ipatinga Dalian Xi'an Brussels Londrina Fife Xiamen Serne Belém
43
action count
action greater
action find_tuple_counts
relation sister city
type political territorial entity
type city
action count
action filter_type
action find
entity Villanueva de la Cañada
relation sister city
type political territorial entity
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?f ) WHERE { ?n rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:city . ?n property:sister_city ?p } GROUP BY ?n } . FILTER ( ?f > ?z ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { resource:Villanueva_de_la_Cañada property:sister_city ?h . ?h rdf:type ontology:political_territorial_entity } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q83004
P106
Q12737077
USER
What do Emile Nau do for a living ?
(Q83004,P106,c(Q12737077))
action filter_type
action find
entity Q83004
relation P106
type Q12737077
['Q83004', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q83004 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Emile Nau
action filter_type
action find
entity Emile Nau
relation occupation
type occupation
['Emile Nau', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Emile_Nau property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q201788 Q1930187 Q82955
SYSTEM
historian, journalist, politician
Q201788 Q1930187 Q82955 Q36180
(Q83004,P106,c(Q12737077))
action filter_type
action find
entity Q83004
relation P106
type Q12737077
[ANSWERS] Emile Nau do for a living
['Q83004', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q83004 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
historian journalist politician writer
Historian, journalist and politician Emile Nau do for a living
historian journalist politician
action filter_type
action find
entity Emile Nau
relation occupation
type occupation
['Emile Nau', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Emile_Nau property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?a ) { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P417 ?l . ?l rdf:type ontology:Q502895 . ?f rdf:type ontology:Q12737077 } GROUP BY ?l } } . { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P417 ?s . ?s rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?s } . FILTER ( ?y = ?a ) }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?a ) { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:patron_saint ?l . ?l rdf:type ontology:common_name . ?f rdf:type ontology:occupation } GROUP BY ?l } } . { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:patron_saint ?s . ?s rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?s } . FILTER ( ?y = ?a ) }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the patron saint of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?a ) { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P417 ?l . ?l rdf:type ontology:Q502895 . ?f rdf:type ontology:Q12737077 } GROUP BY ?l } } . { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P417 ?s . ?s rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?s } . FILTER ( ?y = ?a ) }
Catherine of Alexandria
Catherine of Alexandria is the patron saint of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?a ) { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:patron_saint ?l . ?l rdf:type ontology:common_name . ?f rdf:type ontology:occupation } GROUP BY ?l } } . { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:patron_saint ?s . ?s rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?s } . FILTER ( ?y = ?a ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q179718
P2348
Q3024240
USER
When did that person take place ?
(Q179718,P2348,c(Q3024240))
action filter_type
action find
entity Q179718
relation P2348
type Q3024240
['Q179718', 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ?j WHERE { resource:Q179718 property:P2348 ?j . ?j rdf:type ontology:Q3024240 }
Catherine of Alexandria
action filter_type
action find
entity Catherine of Alexandria
relation period
type former country
['Catherine of Alexandria', 'period', {'concept': 'former country'}]
SELECT DISTINCT ?j WHERE { resource:Catherine_of_Alexandria property:period ?j . ?j rdf:type ontology:former_country }
[]
former country
Q2277
SYSTEM
Roman Empire
Q2277
(Q179718,P2348,c(Q3024240))
action filter_type
action find
entity Q179718
relation P2348
type Q3024240
Place that person took the [ANSWER]
['Q179718', 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ?j WHERE { resource:Q179718 property:P2348 ?j . ?j rdf:type ontology:Q3024240 }
Roman Empire
Place that person took the Roman Empire
Roman Empire
action filter_type
action find
entity Catherine of Alexandria
relation period
type former country
['Catherine of Alexandria', 'period', {'concept': 'former country'}]
SELECT DISTINCT ?j WHERE { resource:Catherine_of_Alexandria property:period ?j . ?j rdf:type ontology:former_country }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q311807 Q179718
P2348
Q3024240
USER
And also Lucius Calpurnius Piso Frugi
AND((Q179718,P2348,c(Q3024240)), (Q311807,P2348,c(Q3024240)))
action filter_type
action intersection
action find
entity Q179718
relation P2348
action find
entity Q311807
relation P2348
type Q3024240
{'AND': [['Q179718', 'P2348', {'concept': 'Q3024240'}], ['Q311807', 'P2348', {'concept': 'Q3024240'}]]}
SELECT DISTINCT ?o WHERE { resource:Q179718 property:P2348 ?o . resource:Q311807 property:P2348 ?o . ?o rdf:type ontology:Q3024240 }
Lucius Calpurnius Piso Frugi Catherine of Alexandria
action filter_type
action intersection
action find
entity Catherine of Alexandria
relation period
action find
entity Lucius Calpurnius Piso Frugi
relation period
type former country
{'AND': [['Catherine of Alexandria', 'period', {'concept': 'former country'}], ['Lucius Calpurnius Piso Frugi', 'period', {'concept': 'former country'}]]}
SELECT DISTINCT ?o WHERE { resource:Catherine_of_Alexandria property:period ?o . resource:Lucius_Calpurnius_Piso_Frugi property:period ?o . ?o rdf:type ontology:former_country }
[]
former country
Q2277
SYSTEM
Roman Empire
Q2277
AND((Q179718,P2348,c(Q3024240)), (Q311807,P2348,c(Q3024240)))
action filter_type
action intersection
action find
entity Q179718
relation P2348
action find
entity Q311807
relation P2348
type Q3024240
[ANSWER]
{'AND': [['Q179718', 'P2348', {'concept': 'Q3024240'}], ['Q311807', 'P2348', {'concept': 'Q3024240'}]]}
SELECT DISTINCT ?o WHERE { resource:Q179718 property:P2348 ?o . resource:Q311807 property:P2348 ?o . ?o rdf:type ontology:Q3024240 }
Roman Empire
Roman Empire
action filter_type
action intersection
action find
entity Catherine of Alexandria
relation period
action find
entity Lucius Calpurnius Piso Frugi
relation period
type former country
{'AND': [['Catherine of Alexandria', 'period', {'concept': 'former country'}], ['Lucius Calpurnius Piso Frugi', 'period', {'concept': 'former country'}]]}
SELECT DISTINCT ?o WHERE { resource:Catherine_of_Alexandria property:period ?o . resource:Lucius_Calpurnius_Piso_Frugi property:period ?o . ?o rdf:type ontology:former_country }
[]