Simple Question (Direct)
Simple Question
Q661504
P734
Q82799
USER
Who has the surname Nicholas Romanov, Romanov's descent ?
(Q661504,P734,c(Q82799))
action filter_type
action find
entity Q661504
relation P734
type Q82799
['Q661504', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q82799 . resource:Q661504 property:P734 ?x }
Nicholas Romanov, Romanov's descent
action filter_type
action find
entity Nicholas Romanov, Romanov's descent
relation family name
type name
["Nicholas Romanov, Romanov's descent", 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:name . resource:Nicholas_Romanov,_Romanov's_descent property:family_name ?x }
[]
name
Q10854295
SYSTEM
Romanow
Q10854295
(Q661504,P734,c(Q82799))
action filter_type
action find
entity Q661504
relation P734
type Q82799
[ANSWER] has the surname Nicholas Romanov, Romanov's descent
['Q661504', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q82799 . resource:Q661504 property:P734 ?x }
Romanow
Romanow has the surname Nicholas Romanov, Romanov's descent
Romanow
action filter_type
action find
entity Nicholas Romanov, Romanov's descent
relation family name
type name
["Nicholas Romanov, Romanov's descent", 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:name . resource:Nicholas_Romanov,_Romanov's_descent property:family_name ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q661504
P40
Q502895
USER
Which person has Nicholas Romanov, Romanov's descent as a child ?
(c(Q502895),P40,Q661504)
action filter_type
action find_reverse
entity Q661504
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q661504']
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q661504 . ?i rdf:type ontology:Q502895 }
Nicholas Romanov, Romanov's descent
action filter_type
action find_reverse
entity Nicholas Romanov, Romanov's descent
relation child
type common name
[{'concept': 'common name'}, 'child', "Nicholas Romanov, Romanov's descent"]
SELECT DISTINCT ?i WHERE { ?i property:child resource:Nicholas_Romanov,_Romanov's_descent . ?i rdf:type ontology:common_name }
[]
common name
Q512800
SYSTEM
Prince Roman Petrovich of Russia
Q512800
(c(Q502895),P40,Q661504)
action filter_type
action find_reverse
entity Q661504
relation P40
type Q502895
[ANSWER] has Nicholas Romanov, Romanov's descent as a child
[{'concept': 'Q502895'}, 'P40', 'Q661504']
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q661504 . ?i rdf:type ontology:Q502895 }
Prince Roman Petrovich of Russia
Prince Roman Petrovich of Russia has Nicholas Romanov, Romanov's descent as a child
Prince Roman Petrovich of Russia
action filter_type
action find_reverse
entity Nicholas Romanov, Romanov's descent
relation child
type common name
[{'concept': 'common name'}, 'child', "Nicholas Romanov, Romanov's descent"]
SELECT DISTINCT ?i WHERE { ?i property:child resource:Nicholas_Romanov,_Romanov's_descent . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q661504
P7
Q502895
USER
Who has Nicholas Romanov, Romanov's descent as their sibling ?
(c(Q502895),P7,Q661504)
action filter_type
action find
entity Q661504
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q661504']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q661504 property:P7 ?p }
Nicholas Romanov, Romanov's descent
action filter_type
action find
entity Nicholas Romanov, Romanov's descent
relation brother
type common name
[{'concept': 'common name'}, 'brother', "Nicholas Romanov, Romanov's descent"]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Nicholas_Romanov,_Romanov's_descent property:brother ?p }
[]
common name
Q2657659
SYSTEM
Prince Dimitri Romanov
Q2657659
(c(Q502895),P7,Q661504)
action filter_type
action find
entity Q661504
relation P7
type Q502895
[ANSWER] has Nicholas Romanov, Romanov's descent as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q661504']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q661504 property:P7 ?p }
Prince Dimitri Romanov
Prince Dimitri Romanov has Nicholas Romanov, Romanov's descent as their sibling
Prince Dimitri Romanov
action filter_type
action find
entity Nicholas Romanov, Romanov's descent
relation brother
type common name
[{'concept': 'common name'}, 'brother', "Nicholas Romanov, Romanov's descent"]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Nicholas_Romanov,_Romanov's_descent property:brother ?p }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2657659 Q1461842
P19
Q20667921
USER
Was that person born at Remicourt ?
(Q2657659,P19,Q1461842)
action is_in
entity Q1461842
action find
entity Q2657659
relation P19
['Q2657659', 'P19', 'Q1461842']
ASK WHERE { resource:Q2657659 property:P19 resource:Q1461842 }
Prince Dimitri Romanov Remicourt
action is_in
entity Remicourt
action find
entity Prince Dimitri Romanov
relation place of birth
['Prince Dimitri Romanov', 'place of birth', 'Remicourt']
ASK WHERE { resource:Prince_Dimitri_Romanov property:place_of_birth resource:Remicourt }
[]
type of french administrative division
SYSTEM
NO
(Q2657659,P19,Q1461842)
action is_in
entity Q1461842
action find
entity Q2657659
relation P19
[ANSWER]
['Q2657659', 'P19', 'Q1461842']
ASK WHERE { resource:Q2657659 property:P19 resource:Q1461842 }
No
action is_in
entity Remicourt
action find
entity Prince Dimitri Romanov
relation place of birth
['Prince Dimitri Romanov', 'place of birth', 'Remicourt']
ASK WHERE { resource:Prince_Dimitri_Romanov property:place_of_birth resource:Remicourt }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2657659
P19
Q20667921
USER
How many french administrative divisions were Prince Dimitri Romanov born at ?
(Q2657659,P19,c(Q20667921))
action count
action filter_type
action find
entity Q2657659
relation P19
type Q20667921
['Q2657659', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { resource:Q2657659 property:P19 ?l . ?l rdf:type ontology:Q20667921 }
Prince Dimitri Romanov
action count
action filter_type
action find
entity Prince Dimitri Romanov
relation place of birth
type type of french administrative division
['Prince Dimitri Romanov', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { resource:Prince_Dimitri_Romanov property:place_of_birth ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
1
Q126898
(Q2657659,P19,c(Q20667921))
action count
action filter_type
action find
entity Q2657659
relation P19
type Q20667921
[ANSWER]
['Q2657659', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { resource:Q2657659 property:P19 ?l . ?l rdf:type ontology:Q20667921 }
Antibes
1
action count
action filter_type
action find
entity Prince Dimitri Romanov
relation place of birth
type type of french administrative division
['Prince Dimitri Romanov', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { resource:Prince_Dimitri_Romanov property:place_of_birth ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q3345799
Q20667921
USER
And what about Noël Curnier?
(Q3345799,P19,c(Q20667921))
action count
action filter_type
action find
entity Q3345799
relation P19
type Q20667921
['Q3345799', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { resource:Q3345799 property:P19 ?m . ?m rdf:type ontology:Q20667921 }
Noël Curnier
action count
action filter_type
action find
entity Noël Curnier
relation place of birth
type type of french administrative division
['Noël Curnier', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { resource:Noël_Curnier property:place_of_birth ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
1
(Q3345799,P19,c(Q20667921))
action count
action filter_type
action find
entity Q3345799
relation P19
type Q20667921
[ANSWER]
['Q3345799', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { resource:Q3345799 property:P19 ?m . ?m rdf:type ontology:Q20667921 }
1
action count
action filter_type
action find
entity Noël Curnier
relation place of birth
type type of french administrative division
['Noël Curnier', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { resource:Noël_Curnier property:place_of_birth ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q79191 Q661504
P27
Q15617994
USER
Which administrative territories are Nicholas Romanov, Romanov's descent or Jelena Karleuša an inhabitant of ?
OR((Q661504,P27,c(Q15617994)), (Q79191,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q661504
relation P27
action find
entity Q79191
relation P27
type Q15617994
{'OR': [['Q661504', 'P27', {'concept': 'Q15617994'}], ['Q79191', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { ?o property:P27 ?m . VALUES ( ?o ) { ( resource:Q661504 ) ( resource:Q79191 ) } } . ?m rdf:type ontology:Q15617994 }
Jelena Karleuša Nicholas Romanov, Romanov's descent
action filter_type
action union
action find
entity Nicholas Romanov, Romanov's descent
relation country of citizenship
action find
entity Jelena Karleuša
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [["Nicholas Romanov, Romanov's descent", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jelena Karleuša', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { ?o property:country_of_citizenship ?m . VALUES ( ?o ) { ( resource:Nicholas_Romanov,_Romanov's_descent ) ( resource:Jelena_Karleuša ) } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403 Q38
SYSTEM
Serbia, Italy
Q403 Q38
OR((Q661504,P27,c(Q15617994)), (Q79191,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q661504
relation P27
action find
entity Q79191
relation P27
type Q15617994
[ANSWERS] are Nicholas Romanov, Romanov's descent or Jelena Karleuša an inhabitant of
{'OR': [['Q661504', 'P27', {'concept': 'Q15617994'}], ['Q79191', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { ?o property:P27 ?m . VALUES ( ?o ) { ( resource:Q661504 ) ( resource:Q79191 ) } } . ?m rdf:type ontology:Q15617994 }
Serbia Italy
Serbia and Italy are Nicholas Romanov, Romanov's descent or Jelena Karleuša an inhabitant of
Serbia Italy
action filter_type
action union
action find
entity Nicholas Romanov, Romanov's descent
relation country of citizenship
action find
entity Jelena Karleuša
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [["Nicholas Romanov, Romanov's descent", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jelena Karleuša', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { ?o property:country_of_citizenship ?m . VALUES ( ?o ) { ( resource:Nicholas_Romanov,_Romanov's_descent ) ( resource:Jelena_Karleuša ) } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q1048835 Q15617994
USER
How many political territories and administrative territories have diplomatic relations with that administrative territory ?
(Q403,P530,c(Q1048835)) (Q403,P530,c(Q15617994)) (Q403,P530,c(Q1048835)) (Q403,P530,c(Q15617994)) (Q38,P530,c(Q1048835)) (Q38,P530,c(Q15617994))
['Q403', 'P530', {'concept': 'Q1048835'}] ['Q403', 'P530', {'concept': 'Q15617994'}] ['Q403', 'P530', {'concept': 'Q1048835'}] ['Q403', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q403 property:P530 ?z } UNION { resource:Q403 property:P530 ?y } UNION { resource:Q403 property:P530 ?z } UNION { resource:Q403 property:P530 ?y } UNION { resource:Q977238 property:P530 ?z } UNION { resource:Q977238 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
['Serbia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Serbia property:diplomatic_relation ?z } UNION { resource:Serbia property:diplomatic_relation ?y } UNION { resource:Serbia property:diplomatic_relation ?z } UNION { resource:Serbia property:diplomatic_relation ?y } UNION { resource:Italy property:diplomatic_relation ?z } UNION { resource:Italy property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
political territorial entity designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q403
SYSTEM
Did you mean Serbia ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q403 property:P530 ?z } UNION { resource:Q403 property:P530 ?y } UNION { resource:Q403 property:P530 ?z } UNION { resource:Q403 property:P530 ?y } UNION { resource:Q977238 property:P530 ?z } UNION { resource:Q977238 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Did you mean Serbia ?
Serbia
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Serbia property:diplomatic_relation ?z } UNION { resource:Serbia property:diplomatic_relation ?y } UNION { resource:Serbia property:diplomatic_relation ?z } UNION { resource:Serbia property:diplomatic_relation ?y } UNION { resource:Italy property:diplomatic_relation ?z } UNION { resource:Italy property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q403,P530,c(Q1048835)) (Q403,P530,c(Q15617994)) (Q403,P530,c(Q1048835)) (Q403,P530,c(Q15617994)) (Q38,P530,c(Q1048835)) (Q38,P530,c(Q15617994))
['Q403', 'P530', {'concept': 'Q1048835'}] ['Q403', 'P530', {'concept': 'Q15617994'}] ['Q403', 'P530', {'concept': 'Q1048835'}] ['Q403', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q15617994'}]
['Serbia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
3 political territories and 7 administrative territories
Q142 Q159 Q40 Q145 Q155 Q183 Q408 Q30 Q28 Q38
(Q403,P530,c(Q1048835)) (Q403,P530,c(Q15617994)) (Q403,P530,c(Q1048835)) (Q403,P530,c(Q15617994)) (Q38,P530,c(Q1048835)) (Q38,P530,c(Q15617994))
[ANSWER]
['Q403', 'P530', {'concept': 'Q1048835'}] ['Q403', 'P530', {'concept': 'Q15617994'}] ['Q403', 'P530', {'concept': 'Q1048835'}] ['Q403', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q403 property:P530 ?z } UNION { resource:Q403 property:P530 ?y } UNION { resource:Q403 property:P530 ?z } UNION { resource:Q403 property:P530 ?y } UNION { resource:Q977238 property:P530 ?z } UNION { resource:Q977238 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
France Russia Austria United Kingdom Brazil Germany Australia United States of America Hungary Italy
3 political territories and 7 administrative territories
['Serbia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Serbia property:diplomatic_relation ?z } UNION { resource:Serbia property:diplomatic_relation ?y } UNION { resource:Serbia property:diplomatic_relation ?z } UNION { resource:Serbia property:diplomatic_relation ?y } UNION { resource:Italy property:diplomatic_relation ?z } UNION { resource:Italy property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]