Simple Question (Direct)
Simple Question
Q61582
P1066
Q502895
USER
Which person was the professor of Johannes Eccard ?
(Q61582,P1066,c(Q502895))
action filter_type
action find
entity Q61582
relation P1066
type Q502895
['Q61582', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q61582 property:P1066 ?j . ?j rdf:type ontology:Q502895 }
Johannes Eccard
action filter_type
action find
entity Johannes Eccard
relation student of
type common name
['Johannes Eccard', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Johannes_Eccard property:student_of ?j . ?j rdf:type ontology:common_name }
[]
common name
Q154792
SYSTEM
Orlande de Lassus
Q154792
(Q61582,P1066,c(Q502895))
action filter_type
action find
entity Q61582
relation P1066
type Q502895
[ANSWER] was the professor of Johannes Eccard
['Q61582', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q61582 property:P1066 ?j . ?j rdf:type ontology:Q502895 }
Orlande de Lassus
Orlande de Lassus was the professor of Johannes Eccard
Orlande de Lassus
action filter_type
action find
entity Johannes Eccard
relation student of
type common name
['Johannes Eccard', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Johannes_Eccard property:student_of ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q154792
P22
Q502895
USER
Who are the offspring of that one ?
(c(Q502895),P22,Q154792)
action filter_type
action find_reverse
entity Q154792
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q154792']
SELECT DISTINCT ?x WHERE { ?x property:P22 resource:Q154792 . ?x rdf:type ontology:Q502895 }
Orlande de Lassus
action filter_type
action find_reverse
entity Orlande de Lassus
relation father
type common name
[{'concept': 'common name'}, 'father', 'Orlande de Lassus']
SELECT DISTINCT ?x WHERE { ?x property:father resource:Orlande_de_Lassus . ?x rdf:type ontology:common_name }
[]
common name
Q1406105 Q14631455 Q3940013
SYSTEM
Ferdinando di Lasso, Regina di Lasso, Rudolph di Lasso
Q1406105 Q14631455 Q3940013
(c(Q502895),P22,Q154792)
action filter_type
action find_reverse
entity Q154792
relation P22
type Q502895
The offspring of that one are Prince [ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q154792']
SELECT DISTINCT ?x WHERE { ?x property:P22 resource:Q154792 . ?x rdf:type ontology:Q502895 }
Ferdinando di Lasso Regina di Lasso Rudolph di Lasso
The offspring of that one are Prince Ferdinando di Lasso, Regina di Lasso and Rudolph di Lasso
Ferdinando di Lasso Regina di Lasso Rudolph di Lasso
action filter_type
action find_reverse
entity Orlande de Lassus
relation father
type common name
[{'concept': 'common name'}, 'father', 'Orlande de Lassus']
SELECT DISTINCT ?x WHERE { ?x property:father resource:Orlande_de_Lassus . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q586018 Q14631455
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of Regina di Lasso or have a shared border with Osuna ?
OR((Q14631455,P27,c(Q1048835)), (Q586018,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q14631455
relation P27
action find
entity Q586018
relation P47
type Q1048835
{'OR': [['Q14631455', 'P27', {'concept': 'Q1048835'}], ['Q586018', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q14631455 property:P27 ?h } UNION { resource:Q586018 property:P47 ?h } } . ?h rdf:type ontology:Q1048835 }
Osuna Regina di Lasso
action filter_type
action union
action find
entity Regina di Lasso
relation country of citizenship
action find
entity Osuna
relation shares border with
type political territorial entity
{'OR': [['Regina di Lasso', 'country of citizenship', {'concept': 'political territorial entity'}], ['Osuna', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Regina_di_Lasso property:country_of_citizenship ?h } UNION { resource:Osuna property:shares_border_with ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1448419 Q1628338 Q1623054 Q1627519 Q1146831 Q929481 Q1442251 Q183 Q966470 Q1605562
SYSTEM
Some of them are Gilena, Pedrera, Aguadulce, Los Corrales, La Puebla de Cazalla, Marchena, Villanueva de San Juan, Germany, Estepa, El Saucejo
Q1448419 Q1605621 Q1442251 Q929481 Q1628338 Q183 Q966470 Q1445292 Q1623054 Q1605654 Q1627519 Q1146831 Q1605562
OR((Q14631455,P27,c(Q1048835)), (Q586018,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q14631455
relation P27
action find
entity Q586018
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of Regina di Lasso or have a shared border with Osuna
{'OR': [['Q14631455', 'P27', {'concept': 'Q1048835'}], ['Q586018', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q14631455 property:P27 ?h } UNION { resource:Q586018 property:P47 ?h } } . ?h rdf:type ontology:Q1048835 }
Gilena Martín de la Jara Villanueva de San Juan Marchena Pedrera Germany Estepa El Rubio Aguadulce La Lantejuela Los Corrales La Puebla de Cazalla El Saucejo
Gilena, Pedrera, Aguadulce, Los Corrales, La Puebla de Cazalla, Marchena, Villanueva de San Juan, Germany, Estepa and El Saucejo are the countries of citizenship of Regina di Lasso or have a shared border with Osuna
Gilena Pedrera Aguadulce Los Corrales La Puebla de Cazalla Marchena Villanueva de San Juan Germany Estepa El Saucejo
action filter_type
action union
action find
entity Regina di Lasso
relation country of citizenship
action find
entity Osuna
relation shares border with
type political territorial entity
{'OR': [['Regina di Lasso', 'country of citizenship', {'concept': 'political territorial entity'}], ['Osuna', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Regina_di_Lasso property:country_of_citizenship ?h } UNION { resource:Osuna property:shares_border_with ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
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 diplomatic relations with exactly 2 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?v ) WHERE { ?r property:P530 ?s . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?v = 2 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?v ) WHERE { ?r property:diplomatic_relation ?s . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?v = 2 ) }
[]
political territorial entity political territorial entity
SYSTEM
1
Q40
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?v ) WHERE { ?r property:P530 ?s . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?v = 2 ) }
Austria
1
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?v ) WHERE { ?r property:diplomatic_relation ?s . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?v = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q1048835 Q838948 Q201658
USER
How many political territories are the countries of origin of exactly 1 works of art and film genres ?
(c(Q838948)|c(Q201658),P495,c(Q1048835))
action count
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
value 1
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?e ) WHERE { { ?f rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q838948 . ?v property:P495 ?f } UNION { ?v property:P495 ?f . ?v rdf:type ontology:Q201658 . ?f rdf:type ontology:Q1048835 } } GROUP BY ?f } . FILTER ( ?e = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
value 1
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?e ) WHERE { { ?f rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:work_of_art . ?v property:country_of_origin ?f } UNION { ?v property:country_of_origin ?f . ?v rdf:type ontology:film_genre . ?f rdf:type ontology:political_territorial_entity } } GROUP BY ?f } . FILTER ( ?e = 1 ) }
[]
political territorial entity work of art film genre
SYSTEM
2
Q769 Q129286
(c(Q838948)|c(Q201658),P495,c(Q1048835))
action count
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
value 1
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?e ) WHERE { { ?f rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q838948 . ?v property:P495 ?f } UNION { ?v property:P495 ?f . ?v rdf:type ontology:Q201658 . ?f rdf:type ontology:Q1048835 } } GROUP BY ?f } . FILTER ( ?e = 1 ) }
Grenada British Raj
2
action count
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
value 1
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?e ) WHERE { { ?f rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:work_of_art . ?v property:country_of_origin ?f } UNION { ?v property:country_of_origin ?f . ?v rdf:type ontology:film_genre . ?f rdf:type ontology:political_territorial_entity } } GROUP BY ?f } . FILTER ( ?e = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with exactly 3 political territories ?
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?w = 3 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?w ) WHERE { ?g rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 . ?g property:P530 ?r } GROUP BY ?g } }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?w = 3 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?w ) WHERE { ?g rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?g property:diplomatic_relation ?r } GROUP BY ?g } }
[]
political territorial entity political territorial entity
Q35 Q664
SYSTEM
Denmark, New Zealand
Q35 Q664
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[ANSWERS] have diplomatic relationships with exactly 3 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?w = 3 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?w ) WHERE { ?g rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 . ?g property:P530 ?r } GROUP BY ?g } }
Denmark New Zealand
Denmark and New Zealand have diplomatic relationships with exactly 3 political territories
Denmark New Zealand
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?w = 3 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?w ) WHERE { ?g rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?g property:diplomatic_relation ?r } GROUP BY ?g } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q664
P163
Q14660
USER
Which flag is associated with that political territory ?
(Q664,P163,c(Q14660))
action filter_type
action find
entity Q664
relation P163
type Q14660
['Q664', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?o WHERE { resource:Q664 property:P163 ?o . ?o rdf:type ontology:Q14660 }
New Zealand
action filter_type
action find
entity New Zealand
relation flag
type flag
['New Zealand', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?o WHERE { resource:New_Zealand property:flag ?o . ?o rdf:type ontology:flag }
[]
flag
Clarification for simple ques.
Q35
SYSTEM
Did you mean Denmark ?
Q35 Q664
(Q35,P163,c(Q14660)) (Q664,P163,c(Q14660))
[ANSWER]
['Q35', 'P163', {'concept': 'Q14660'}] ['Q664', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?o WHERE { resource:Q664 property:P163 ?o . ?o rdf:type ontology:Q14660 }
Denmark New Zealand
Did you mean Denmark ?
Denmark
['Denmark', 'flag', {'concept': 'flag'}] ['New Zealand', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?o WHERE { resource:New_Zealand property:flag ?o . ?o rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
USER
No, I meant New Zealand. Could you tell me the answer for that?
(Q664,P163,c(Q14660))
Q664
['Q664', 'P163', {'concept': 'Q14660'}]
['New Zealand', 'flag', {'concept': 'flag'}]
[]
Q160260
SYSTEM
flag of New Zealand
Q160260
(Q664,P163,c(Q14660))
action filter_type
action find
entity Q664
relation P163
type Q14660
Zealand [ANSWER] is associated with that political territory
['Q664', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?o WHERE { resource:Q664 property:P163 ?o . ?o rdf:type ontology:Q14660 }
flag of New Zealand
Zealand flag of New Zealand is associated with that political territory
flag of New Zealand
action filter_type
action find
entity New Zealand
relation flag
type flag
['New Zealand', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?o WHERE { resource:New_Zealand property:flag ?o . ?o rdf:type ontology:flag }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q160260 Q664
P1001
Q1048835
USER
Does New Zealand belong to jurisdiction of flag of New Zealand ?
(Q160260,P1001,Q664)
action is_in
entity Q664
action find
entity Q160260
relation P1001
['Q160260', 'P1001', 'Q664']
ASK WHERE { resource:Q160260 property:P1001 resource:Q664 }
flag of New Zealand New Zealand
action is_in
entity New Zealand
action find
entity flag of New Zealand
relation applies to jurisdiction
['flag of New Zealand', 'applies to jurisdiction', 'New Zealand']
ASK WHERE { resource:flag_of_New_Zealand property:applies_to_jurisdiction resource:New_Zealand }
[]
political territorial entity
SYSTEM
YES
(Q160260,P1001,Q664)
action is_in
entity Q664
action find
entity Q160260
relation P1001
[ANSWER]
['Q160260', 'P1001', 'Q664']
ASK WHERE { resource:Q160260 property:P1001 resource:Q664 }
Yes
action is_in
entity New Zealand
action find
entity flag of New Zealand
relation applies to jurisdiction
['flag of New Zealand', 'applies to jurisdiction', 'New Zealand']
ASK WHERE { resource:flag_of_New_Zealand property:applies_to_jurisdiction resource:New_Zealand }
[]