Simple Question (Direct)
Simple Question
Q1359722
P22
Q502895
USER
Which male person has a child named Mykhailo Drahomanov ?
(Q1359722,P22,c(Q502895))
action filter_type
action find
entity Q1359722
relation P22
type Q502895
['Q1359722', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1359722 property:P22 ?m . ?m rdf:type ontology:Q502895 }
Mykhailo Drahomanov
action filter_type
action find
entity Mykhailo Drahomanov
relation father
type common name
['Mykhailo Drahomanov', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Mykhailo_Drahomanov property:father ?m . ?m rdf:type ontology:common_name }
[]
common name
Q20729087
SYSTEM
Dragomanov Petro
Q20729087
(Q1359722,P22,c(Q502895))
action filter_type
action find
entity Q1359722
relation P22
type Q502895
[ANSWER]
['Q1359722', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1359722 property:P22 ?m . ?m rdf:type ontology:Q502895 }
Dragomanov Petro
Dragomanov Petro
action filter_type
action find
entity Mykhailo Drahomanov
relation father
type common name
['Mykhailo Drahomanov', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Mykhailo_Drahomanov property:father ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1359722
P7
Q502895
USER
Who is Mykhailo Drahomanov a brother of ?
(c(Q502895),P7,Q1359722)
action filter_type
action find_reverse
entity Q1359722
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q1359722']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P7 resource:Q1359722 }
Mykhailo Drahomanov
action filter_type
action find_reverse
entity Mykhailo Drahomanov
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Mykhailo Drahomanov']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:brother resource:Mykhailo_Drahomanov }
[]
common name
Q2447379
SYSTEM
Olena Pchilka
Q2447379
(c(Q502895),P7,Q1359722)
action filter_type
action find_reverse
entity Q1359722
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q1359722']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P7 resource:Q1359722 }
Olena Pchilka
Olena Pchilka
action filter_type
action find_reverse
entity Mykhailo Drahomanov
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Mykhailo Drahomanov']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:brother resource:Mykhailo_Drahomanov }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1359722
P40
Q502895
USER
Which person has Mykhailo Drahomanov as a child ?
(c(Q502895),P40,Q1359722)
action filter_type
action find_reverse
entity Q1359722
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1359722']
SELECT DISTINCT ?h WHERE { ?h property:P40 resource:Q1359722 . ?h rdf:type ontology:Q502895 }
Mykhailo Drahomanov
action filter_type
action find_reverse
entity Mykhailo Drahomanov
relation child
type common name
[{'concept': 'common name'}, 'child', 'Mykhailo Drahomanov']
SELECT DISTINCT ?h WHERE { ?h property:child resource:Mykhailo_Drahomanov . ?h rdf:type ontology:common_name }
[]
common name
Q20729087
SYSTEM
Dragomanov Petro
Q20729087
(c(Q502895),P40,Q1359722)
action filter_type
action find_reverse
entity Q1359722
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q1359722']
SELECT DISTINCT ?h WHERE { ?h property:P40 resource:Q1359722 . ?h rdf:type ontology:Q502895 }
Dragomanov Petro
Dragomanov Petro
action filter_type
action find_reverse
entity Mykhailo Drahomanov
relation child
type common name
[{'concept': 'common name'}, 'child', 'Mykhailo Drahomanov']
SELECT DISTINCT ?h WHERE { ?h property:child resource:Mykhailo_Drahomanov . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1359722
P19
Q56061
USER
Which administrative territory was Mykhailo Drahomanov born at ?
(Q1359722,P19,c(Q56061))
action filter_type
action find
entity Q1359722
relation P19
type Q56061
['Q1359722', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q1359722 property:P19 ?l }
Mykhailo Drahomanov
action filter_type
action find
entity Mykhailo Drahomanov
relation place of birth
type administrative territorial entity
['Mykhailo Drahomanov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Mykhailo_Drahomanov property:place_of_birth ?l }
[]
administrative territorial entity
Q268638
SYSTEM
Hadiach
Q268638
(Q1359722,P19,c(Q56061))
action filter_type
action find
entity Q1359722
relation P19
type Q56061
[ANSWER]
['Q1359722', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q1359722 property:P19 ?l }
Hadiach
Hadiach
action filter_type
action find
entity Mykhailo Drahomanov
relation place of birth
type administrative territorial entity
['Mykhailo Drahomanov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Mykhailo_Drahomanov property:place_of_birth ?l }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q20729087
P21 P22
Q502895
USER
Which people have Dragomanov Petro as a parent and have male as the sex ?
AND((c(Q502895),P22,Q20729087), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q20729087
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q20729087'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z property:P22 resource:Q20729087 . ?z property:P21 resource:Q6581097 . ?z rdf:type ontology:Q502895 }
male Dragomanov Petro
action filter_type
action intersection
action find_reverse
entity Dragomanov Petro
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Dragomanov Petro'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z property:father resource:Dragomanov_Petro . ?z property:gender resource:male . ?z rdf:type ontology:common_name }
[]
common name
Q1359722
SYSTEM
Mykhailo Drahomanov
Q1359722
AND((c(Q502895),P22,Q20729087), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q20729087
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER]
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q20729087'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z property:P22 resource:Q20729087 . ?z property:P21 resource:Q6581097 . ?z rdf:type ontology:Q502895 }
Mykhailo Drahomanov
Mykhailo Drahomanov
action filter_type
action intersection
action find_reverse
entity Dragomanov Petro
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Dragomanov Petro'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z property:father resource:Dragomanov_Petro . ?z property:gender resource:male . ?z rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1359722 Q472 Q71
P937
Q56061
USER
Does that person have Sofia and Geneva as work location ?
(Q1359722,P937,Q472) (Q1359722,P937,Q71)
action is_in
entity Q1359722
action intersection
action find_reverse
entity Q472
relation P937
action find_reverse
entity Q71
relation P937
['Q1359722', 'P937', 'Q472'] ['Q1359722', 'P937', 'Q71']
ASK WHERE { resource:Q1359722 property:P937 resource:Q472 . resource:Q1359722 property:P937 resource:Q71 }
Mykhailo Drahomanov Sofia Geneva
action is_in
entity Mykhailo Drahomanov
action intersection
action find_reverse
entity Sofia
relation work location
action find_reverse
entity Geneva
relation work location
['Mykhailo Drahomanov', 'work location', 'Sofia'] ['Mykhailo Drahomanov', 'work location', 'Geneva']
ASK WHERE { resource:Mykhailo_Drahomanov property:work_location resource:Sofia . resource:Mykhailo_Drahomanov property:work_location resource:Geneva }
[]
administrative territorial entity
SYSTEM
YES
(Q1359722,P937,Q472) (Q1359722,P937,Q71)
action is_in
entity Q1359722
action intersection
action find_reverse
entity Q472
relation P937
action find_reverse
entity Q71
relation P937
[ANSWER]
['Q1359722', 'P937', 'Q472'] ['Q1359722', 'P937', 'Q71']
ASK WHERE { resource:Q1359722 property:P937 resource:Q472 . resource:Q1359722 property:P937 resource:Q71 }
Yes
action is_in
entity Mykhailo Drahomanov
action intersection
action find_reverse
entity Sofia
relation work location
action find_reverse
entity Geneva
relation work location
['Mykhailo Drahomanov', 'work location', 'Sofia'] ['Mykhailo Drahomanov', 'work location', 'Geneva']
ASK WHERE { resource:Mykhailo_Drahomanov property:work_location resource:Sofia . resource:Mykhailo_Drahomanov property:work_location resource:Geneva }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P110
Q502895 Q234460 Q2342494
USER
Which people had done the illustration of max number of texts and collectables ?
(c(Q234460)|c(Q2342494),P110,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
[[{'concept': 'Q234460'}, {'concept': 'Q2342494'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?t WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:Q234460 ) ( ontology:Q2342494 ) } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) ?q WHERE { { ?n property:P110 ?q . ?q rdf:type ontology:Q502895 . ?n rdf:type ontology:Q234460 } UNION { ?n property:P110 ?q . ?q rdf:type ontology:Q502895 . ?n rdf:type ontology:Q2342494 } } GROUP BY ?q } . FILTER ( ?x = ?m ) }
action argmax
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type text
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
[[{'concept': 'text'}, {'concept': 'collectable'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?t WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:text ) ( ontology:collectable ) } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) ?q WHERE { { ?n property:illustrator ?q . ?q rdf:type ontology:common_name . ?n rdf:type ontology:text } UNION { ?n property:illustrator ?q . ?q rdf:type ontology:common_name . ?n rdf:type ontology:collectable } } GROUP BY ?q } . FILTER ( ?x = ?m ) }
[]
common name text collectable
Q239144
SYSTEM
Sidney Paget
Q239144
(c(Q234460)|c(Q2342494),P110,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
[ANSWER]
[[{'concept': 'Q234460'}, {'concept': 'Q2342494'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?t WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:Q234460 ) ( ontology:Q2342494 ) } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) ?q WHERE { { ?n property:P110 ?q . ?q rdf:type ontology:Q502895 . ?n rdf:type ontology:Q234460 } UNION { ?n property:P110 ?q . ?q rdf:type ontology:Q502895 . ?n rdf:type ontology:Q2342494 } } GROUP BY ?q } . FILTER ( ?x = ?m ) }
Sidney Paget
Sidney Paget
action argmax
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type text
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
[[{'concept': 'text'}, {'concept': 'collectable'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?t WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:text ) ( ontology:collectable ) } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) ?q WHERE { { ?n property:illustrator ?q . ?q rdf:type ontology:common_name . ?n rdf:type ontology:text } UNION { ?n property:illustrator ?q . ?q rdf:type ontology:common_name . ?n rdf:type ontology:collectable } } GROUP BY ?q } . FILTER ( ?x = ?m ) }
[]