Simple Question (Direct)
Simple Question
Q2676921
P19
Q56061
USER
Which administrative territory was Roy Andrew Miller born at ?
(Q2676921,P19,c(Q56061))
action filter_type
action find
entity Q2676921
relation P19
type Q56061
['Q2676921', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q2676921 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Roy Andrew Miller
action filter_type
action find
entity Roy Andrew Miller
relation place of birth
type administrative territorial entity
['Roy Andrew Miller', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Roy_Andrew_Miller property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q773527
SYSTEM
Winona
Q773527
(Q2676921,P19,c(Q56061))
action filter_type
action find
entity Q2676921
relation P19
type Q56061
Roy Andrew Miller was born to [ANSWER]
['Q2676921', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q2676921 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Winona
Roy Andrew Miller was born to Winona
Winona
action filter_type
action find
entity Roy Andrew Miller
relation place of birth
type administrative territorial entity
['Roy Andrew Miller', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Roy_Andrew_Miller property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2676921
P734
Q82799
USER
Who has the surname Roy Andrew Miller ?
(Q2676921,P734,c(Q82799))
action filter_type
action find
entity Q2676921
relation P734
type Q82799
['Q2676921', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q2676921 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Roy Andrew Miller
action filter_type
action find
entity Roy Andrew Miller
relation family name
type name
['Roy Andrew Miller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Roy_Andrew_Miller property:family_name ?y . ?y rdf:type ontology:name }
[]
name
Q1605060
SYSTEM
Miller
Q1605060
(Q2676921,P734,c(Q82799))
action filter_type
action find
entity Q2676921
relation P734
type Q82799
Andrew [ANSWER] has the surname Roy Andrew [ANSWER]
['Q2676921', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q2676921 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Miller
Andrew Miller has the surname Roy Andrew Miller
Miller
action filter_type
action find
entity Roy Andrew Miller
relation family name
type name
['Roy Andrew Miller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Roy_Andrew_Miller property:family_name ?y . ?y rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16631474
Q82799
USER
And how about Edgar Moreau?
(Q16631474,P734,c(Q82799))
action filter_type
action find
entity Q16631474
relation P734
type Q82799
['Q16631474', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q16631474 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Edgar Moreau
action filter_type
action find
entity Edgar Moreau
relation family name
type name
['Edgar Moreau', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Edgar_Moreau property:family_name ?x . ?x rdf:type ontology:name }
[]
name
Q16877399
SYSTEM
Moreau
Q16877399
(Q16631474,P734,c(Q82799))
action filter_type
action find
entity Q16631474
relation P734
type Q82799
[ANSWER]
['Q16631474', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q16631474 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Moreau
Moreau
action filter_type
action find
entity Edgar Moreau
relation family name
type name
['Edgar Moreau', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Edgar_Moreau property:family_name ?x . ?x rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q1792379 Q838948
USER
Which names are depicted in max number of art genres and works of art ?
(c(Q1792379)|c(Q838948),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
[[{'concept': 'Q1792379'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?o ) { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?z ) WHERE { VALUES ( ?w ) { ( ontology:Q1792379 ) ( ontology:Q838948 ) } . ?u rdf:type ?w } GROUP BY ?y } } . { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?l ) WHERE { { ?v property:P180 ?p . ?p rdf:type ontology:Q82799 . ?v rdf:type ontology:Q1792379 } UNION { ?v property:P180 ?p . ?p rdf:type ontology:Q82799 . ?v rdf:type ontology:Q838948 } } GROUP BY ?p } . FILTER ( ?l = ?o ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type work of art
[[{'concept': 'art genre'}, {'concept': 'work of art'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?o ) { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?z ) WHERE { VALUES ( ?w ) { ( ontology:art_genre ) ( ontology:work_of_art ) } . ?u rdf:type ?w } GROUP BY ?y } } . { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?l ) WHERE { { ?v property:depicts ?p . ?p rdf:type ontology:name . ?v rdf:type ontology:art_genre } UNION { ?v property:depicts ?p . ?p rdf:type ontology:name . ?v rdf:type ontology:work_of_art } } GROUP BY ?p } . FILTER ( ?l = ?o ) }
[]
name art genre work of art
Q726
SYSTEM
horse
Q726
(c(Q1792379)|c(Q838948),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
The [ANSWER] is depicted in max number of art genres and works of art
[[{'concept': 'Q1792379'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?o ) { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?z ) WHERE { VALUES ( ?w ) { ( ontology:Q1792379 ) ( ontology:Q838948 ) } . ?u rdf:type ?w } GROUP BY ?y } } . { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?l ) WHERE { { ?v property:P180 ?p . ?p rdf:type ontology:Q82799 . ?v rdf:type ontology:Q1792379 } UNION { ?v property:P180 ?p . ?p rdf:type ontology:Q82799 . ?v rdf:type ontology:Q838948 } } GROUP BY ?p } . FILTER ( ?l = ?o ) }
horse
The horse is depicted in max number of art genres and works of art
horse
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type work of art
[[{'concept': 'art genre'}, {'concept': 'work of art'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?o ) { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?z ) WHERE { VALUES ( ?w ) { ( ontology:art_genre ) ( ontology:work_of_art ) } . ?u rdf:type ?w } GROUP BY ?y } } . { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?l ) WHERE { { ?v property:depicts ?p . ?p rdf:type ontology:name . ?v rdf:type ontology:art_genre } UNION { ?v property:depicts ?p . ?p rdf:type ontology:name . ?v rdf:type ontology:work_of_art } } GROUP BY ?p } . FILTER ( ?l = ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q11667491 Q884638
P138
Q355304
USER
How many watercourses are the origin of Kagawa Prefectural Road Route 204 or Wipper-Eine ?
(Q11667491,P138,c(Q355304)) (Q884638,P138,c(Q355304))
action count
action union
action filter_type
action find
entity Q11667491
relation P138
type Q355304
action filter_type
action find
entity Q884638
relation P138
type Q355304
['Q11667491', 'P138', {'concept': 'Q355304'}] ['Q884638', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { { resource:Q11667491 property:P138 ?v . ?v rdf:type ontology:Q355304 } UNION { resource:Q884638 property:P138 ?v . ?v rdf:type ontology:Q355304 } }
Kagawa Prefectural Road Route 204 Wipper-Eine
action count
action union
action filter_type
action find
entity Kagawa Prefectural Road Route 204
relation named after
type watercourse
action filter_type
action find
entity Wipper-Eine
relation named after
type watercourse
['Kagawa Prefectural Road Route 204', 'named after', {'concept': 'watercourse'}] ['Wipper-Eine', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { { resource:Kagawa_Prefectural_Road_Route_204 property:named_after ?v . ?v rdf:type ontology:watercourse } UNION { resource:Wipper-Eine property:named_after ?v . ?v rdf:type ontology:watercourse } }
[]
watercourse
SYSTEM
2
Q663709 Q877488
(Q11667491,P138,c(Q355304)) (Q884638,P138,c(Q355304))
action count
action union
action filter_type
action find
entity Q11667491
relation P138
type Q355304
action filter_type
action find
entity Q884638
relation P138
type Q355304
[ANSWER]
['Q11667491', 'P138', {'concept': 'Q355304'}] ['Q884638', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { { resource:Q11667491 property:P138 ?v . ?v rdf:type ontology:Q355304 } UNION { resource:Q884638 property:P138 ?v . ?v rdf:type ontology:Q355304 } }
Wipper Eine
2
action count
action union
action filter_type
action find
entity Kagawa Prefectural Road Route 204
relation named after
type watercourse
action filter_type
action find
entity Wipper-Eine
relation named after
type watercourse
['Kagawa Prefectural Road Route 204', 'named after', {'concept': 'watercourse'}] ['Wipper-Eine', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { { resource:Kagawa_Prefectural_Road_Route_204 property:named_after ?v . ?v rdf:type ontology:watercourse } UNION { resource:Wipper-Eine property:named_after ?v . ?v rdf:type ontology:watercourse } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q8436 Q874405 Q82799
USER
Which names are a component of atleast 1 families or social groups ?
(c(Q82799),P361,c(Q8436)|c(Q874405))
action atleast
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q874405
value 1
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?o >= 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?m WHERE { VALUES ( ?j ) { ( ontology:Q8436 ) ( ontology:Q874405 ) } . ?g rdf:type ?j } GROUP BY ?m } }
action atleast
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type social group
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'social group'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?o >= 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?m WHERE { VALUES ( ?j ) { ( ontology:family ) ( ontology:social_group ) } . ?g rdf:type ?j } GROUP BY ?m } }
[]
family social group name
Q235598 Q742083 Q1557998
SYSTEM
Piso, Princes of Paliano, Gyalwang Drukpa
Q235598 Q742083 Q1557998
(c(Q82799),P361,c(Q8436)|c(Q874405))
action atleast
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q874405
value 1
[ANSWERS] are a component of atleast 1 families or social groups
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?o >= 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?m WHERE { VALUES ( ?j ) { ( ontology:Q8436 ) ( ontology:Q874405 ) } . ?g rdf:type ?j } GROUP BY ?m } }
Piso Princes of Paliano Gyalwang Drukpa
Piso, Princes of Paliano and Gyalwang Drukpa are a component of atleast 1 families or social groups
Piso Princes of Paliano Gyalwang Drukpa
action atleast
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type social group
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'social group'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?o >= 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?m WHERE { VALUES ( ?j ) { ( ontology:family ) ( ontology:social_group ) } . ?g rdf:type ?j } GROUP BY ?m } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q18844248
P361
Q9332 Q151885 Q82799
USER
Which names are a portion of greater number of behaviors and concepts than Rowan ?
(c(Q82799),P361,c(Q9332)|c(Q151885))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q9332
action find_tuple_counts
relation P361
type Q82799
type Q151885
action count
action filter_multi_types
action find
entity Q18844248
relation P361
type Q9332
type Q151885
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q9332'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?t ) WHERE { VALUES ( ?x ) { ( ontology:Q9332 ) ( ontology:Q151885 ) } . ?i rdf:type ?x } GROUP BY ?f } . FILTER ( ?t > ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { ?g rdf:type ?z . VALUES ( ?z ) { ( ontology:Q9332 ) ( ontology:Q151885 ) } } . resource:Q18844248 property:P361 ?g } } }
Rowan
action greater
action union
action find_tuple_counts
relation part of
type name
type behavior
action find_tuple_counts
relation part of
type name
type concept
action count
action filter_multi_types
action find
entity Rowan
relation part of
type behavior
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'behavior'}, {'concept': 'concept'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?t ) WHERE { VALUES ( ?x ) { ( ontology:behavior ) ( ontology:concept ) } . ?i rdf:type ?x } GROUP BY ?f } . FILTER ( ?t > ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { ?g rdf:type ?z . VALUES ( ?z ) { ( ontology:behavior ) ( ontology:concept ) } } . resource:Rowan property:part_of ?g } } }
[]
behavior concept name
Q1058384 Q746990 Q876933
SYSTEM
hakham, Brahman, magi
Q1058384 Q382004 Q746990 Q876933
(c(Q82799),P361,c(Q9332)|c(Q151885))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q9332
action find_tuple_counts
relation P361
type Q82799
type Q151885
action count
action filter_multi_types
action find
entity Q18844248
relation P361
type Q9332
type Q151885
[ANSWERS] are a portion of greater number of behaviors and concepts than Rowan
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q9332'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?t ) WHERE { VALUES ( ?x ) { ( ontology:Q9332 ) ( ontology:Q151885 ) } . ?i rdf:type ?x } GROUP BY ?f } . FILTER ( ?t > ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { ?g rdf:type ?z . VALUES ( ?z ) { ( ontology:Q9332 ) ( ontology:Q151885 ) } } . resource:Q18844248 property:P361 ?g } } }
hakham Afa-Negus Brahman magi
Hakham, Brahman and magi are a portion of greater number of behaviors and concepts than Rowan
hakham Brahman magi
action greater
action union
action find_tuple_counts
relation part of
type name
type behavior
action find_tuple_counts
relation part of
type name
type concept
action count
action filter_multi_types
action find
entity Rowan
relation part of
type behavior
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'behavior'}, {'concept': 'concept'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?t ) WHERE { VALUES ( ?x ) { ( ontology:behavior ) ( ontology:concept ) } . ?i rdf:type ?x } GROUP BY ?f } . FILTER ( ?t > ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { { ?g rdf:type ?z . VALUES ( ?z ) { ( ontology:behavior ) ( ontology:concept ) } } . resource:Rowan property:part_of ?g } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q25695405
P361
Q9332 Q151885 Q82799
USER
And how about Curtis?
(c(Q82799),P361,c(Q9332)|c(Q151885))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q9332
action find_tuple_counts
relation P361
type Q82799
type Q151885
action count
action filter_multi_types
action find
entity Q25695405
relation P361
type Q9332
type Q151885
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q9332'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q25695405 property:P361 ?p . { { ?p rdf:type ontology:Q151885 } UNION { ?p rdf:type ontology:Q9332 } } } } . FILTER ( ?z > ?f ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?e WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:Q9332 ) ( ontology:Q151885 ) } } GROUP BY ?e } }
Curtis
action greater
action union
action find_tuple_counts
relation part of
type name
type behavior
action find_tuple_counts
relation part of
type name
type concept
action count
action filter_multi_types
action find
entity Curtis
relation part of
type behavior
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'behavior'}, {'concept': 'concept'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Curtis property:part_of ?p . { { ?p rdf:type ontology:concept } UNION { ?p rdf:type ontology:behavior } } } } . FILTER ( ?z > ?f ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?e WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:behavior ) ( ontology:concept ) } } GROUP BY ?e } }
[]
behavior concept name
Q1058384 Q746990 Q876933
SYSTEM
hakham, Brahman, magi
Q1058384 Q382004 Q746990 Q876933
(c(Q82799),P361,c(Q9332)|c(Q151885))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q9332
action find_tuple_counts
relation P361
type Q82799
type Q151885
action count
action filter_multi_types
action find
entity Q25695405
relation P361
type Q9332
type Q151885
[ANSWERS]
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q9332'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q25695405 property:P361 ?p . { { ?p rdf:type ontology:Q151885 } UNION { ?p rdf:type ontology:Q9332 } } } } . FILTER ( ?z > ?f ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?e WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:Q9332 ) ( ontology:Q151885 ) } } GROUP BY ?e } }
hakham Afa-Negus Brahman magi
hakham Brahman magi
action greater
action union
action find_tuple_counts
relation part of
type name
type behavior
action find_tuple_counts
relation part of
type name
type concept
action count
action filter_multi_types
action find
entity Curtis
relation part of
type behavior
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'behavior'}, {'concept': 'concept'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Curtis property:part_of ?p . { { ?p rdf:type ontology:concept } UNION { ?p rdf:type ontology:behavior } } } } . FILTER ( ?z > ?f ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?e WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:behavior ) ( ontology:concept ) } } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1058384
P106 P21
Q502895
USER
Which people have a job as hakham and have the gender as male ?
AND((c(Q502895),P106,Q1058384), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1058384
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1058384'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P21 resource:Q6581097 . ?y property:P106 resource:Q1058384 }
male hakham
action filter_type
action intersection
action find_reverse
entity hakham
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'hakham'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:gender resource:male . ?y property:occupation resource:hakham }
[]
common name
Q2822106
SYSTEM
Abul Tayyib Samuel ben Asher al-Jabali
Q2822106
AND((c(Q502895),P106,Q1058384), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1058384
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have a job as hakham and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1058384'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P21 resource:Q6581097 . ?y property:P106 resource:Q1058384 }
Abul Tayyib Samuel ben Asher al-Jabali
Abul Tayyib Samuel ben Asher al-Jabali have a job as hakham and have the gender as male
Abul Tayyib Samuel ben Asher al-Jabali
action filter_type
action intersection
action find_reverse
entity hakham
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'hakham'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:gender resource:male . ?y property:occupation resource:hakham }
[]