Simple Question (Direct)
Simple Question
Q3443055
P641
Q349
USER
What was the sport that Jamon Gordon was a part of ?
(Q3443055,P641,c(Q349))
action filter_type
action find
entity Q3443055
relation P641
type Q349
['Q3443055', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q3443055 property:P641 ?b . ?b rdf:type ontology:Q349 }
Jamon Gordon
action filter_type
action find
entity Jamon Gordon
relation sport
type sport
['Jamon Gordon', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Jamon_Gordon property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q3443055,P641,c(Q349))
action filter_type
action find
entity Q3443055
relation P641
type Q349
The sport that Jamon Gordon was a part of was h [ANSWER]
['Q3443055', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q3443055 property:P641 ?b . ?b rdf:type ontology:Q349 }
basketball
The sport that Jamon Gordon was a part of was h basketball
basketball
action filter_type
action find
entity Jamon Gordon
relation sport
type sport
['Jamon Gordon', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Jamon_Gordon property:sport ?b . ?b rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3443055
P734
Q82799
USER
Which name is associated with Jamon Gordon ?
(Q3443055,P734,c(Q82799))
action filter_type
action find
entity Q3443055
relation P734
type Q82799
['Q3443055', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q3443055 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Jamon Gordon
action filter_type
action find
entity Jamon Gordon
relation family name
type name
['Jamon Gordon', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Jamon_Gordon property:family_name ?z . ?z rdf:type ontology:name }
[]
name
Q2701900
SYSTEM
Gordon
Q2701900
(Q3443055,P734,c(Q82799))
action filter_type
action find
entity Q3443055
relation P734
type Q82799
[ANSWER] is associated with Jamon [ANSWER]
['Q3443055', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q3443055 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Gordon
Gordon is associated with Jamon Gordon
Gordon
action filter_type
action find
entity Jamon Gordon
relation family name
type name
['Jamon Gordon', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Jamon_Gordon property:family_name ?z . ?z rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3443055
P54
Q12973014
USER
Which sports teams are Jamon Gordon a member of ?
(Q3443055,P54,c(Q12973014))
action filter_type
action find
entity Q3443055
relation P54
type Q12973014
['Q3443055', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?i WHERE { resource:Q3443055 property:P54 ?i . ?i rdf:type ontology:Q12973014 }
Jamon Gordon
action filter_type
action find
entity Jamon Gordon
relation member of sports team
type sports team
['Jamon Gordon', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?i WHERE { resource:Jamon_Gordon property:member_of_sports_team ?i . ?i rdf:type ontology:sports_team }
[]
sports team
Q1420393 Q847701 Q264461
SYSTEM
Galatasaray Medical Park, Olympiacos B.C., KK Split
Q847701 Q2332308 Q1420393 Q264461 Q483738
(Q3443055,P54,c(Q12973014))
action filter_type
action find
entity Q3443055
relation P54
type Q12973014
[ANSWERS] are Jamon Gordon a member of
['Q3443055', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?i WHERE { resource:Q3443055 property:P54 ?i . ?i rdf:type ontology:Q12973014 }
Olympiacos B.C. Antalya Greater Metropolitan Municipality Sports Club Galatasaray Medical Park KK Split Anadolu Efes S.K.
Galatasaray Medical Park, Olympiacos B.C. and KK Split are Jamon Gordon a member of
Galatasaray Medical Park Olympiacos B.C. KK Split
action filter_type
action find
entity Jamon Gordon
relation member of sports team
type sports team
['Jamon Gordon', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?i WHERE { resource:Jamon_Gordon property:member_of_sports_team ?i . ?i rdf:type ontology:sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3443055
P106
Q12737077
USER
What is the profession of Jamon Gordon ?
(Q3443055,P106,c(Q12737077))
action filter_type
action find
entity Q3443055
relation P106
type Q12737077
['Q3443055', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3443055 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Jamon Gordon
action filter_type
action find
entity Jamon Gordon
relation occupation
type occupation
['Jamon Gordon', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Jamon_Gordon property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q3443055,P106,c(Q12737077))
action filter_type
action find
entity Q3443055
relation P106
type Q12737077
The profession of Jamon Gordon is a [ANSWER]
['Q3443055', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3443055 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
basketball player
The profession of Jamon Gordon is a basketball player
basketball player
action filter_type
action find
entity Jamon Gordon
relation occupation
type occupation
['Jamon Gordon', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Jamon_Gordon property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1420393
P466
Q811430
USER
What is occupied by Galatasaray Medical Park ?
(c(Q811430),P466,Q1420393)
action filter_type
action find_reverse
entity Q1420393
relation P466
type Q811430
[{'concept': 'Q811430'}, 'P466', 'Q1420393']
SELECT DISTINCT ?t WHERE { ?t property:P466 resource:Q1420393 . ?t rdf:type ontology:Q811430 }
Galatasaray Medical Park
action filter_type
action find_reverse
entity Galatasaray Medical Park
relation occupant
type construction
[{'concept': 'construction'}, 'occupant', 'Galatasaray Medical Park']
SELECT DISTINCT ?t WHERE { ?t property:occupant resource:Galatasaray_Medical_Park . ?t rdf:type ontology:construction }
[]
construction
Q308162
SYSTEM
Abdi İpekçi Arena
Q308162
(c(Q811430),P466,Q1420393)
action filter_type
action find_reverse
entity Q1420393
relation P466
type Q811430
[ANSWER] is occupied by Galatasaray Medical Park
[{'concept': 'Q811430'}, 'P466', 'Q1420393']
SELECT DISTINCT ?t WHERE { ?t property:P466 resource:Q1420393 . ?t rdf:type ontology:Q811430 }
Abdi İpekçi Arena
Abdi İpekçi Arena is occupied by Galatasaray Medical Park
Abdi İpekçi Arena
action filter_type
action find_reverse
entity Galatasaray Medical Park
relation occupant
type construction
[{'concept': 'construction'}, 'occupant', 'Galatasaray Medical Park']
SELECT DISTINCT ?t WHERE { ?t property:occupant resource:Galatasaray_Medical_Park . ?t rdf:type ontology:construction }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1420393
P710
Q476300
USER
What event did Galatasaray Medical Park particiate in ?
(c(Q476300),P710,Q1420393)
action filter_type
action find_reverse
entity Q1420393
relation P710
type Q476300
[{'concept': 'Q476300'}, 'P710', 'Q1420393']
SELECT DISTINCT ?w WHERE { ?w property:P710 resource:Q1420393 . ?w rdf:type ontology:Q476300 }
Galatasaray Medical Park
action filter_type
action find_reverse
entity Galatasaray Medical Park
relation participant
type competition
[{'concept': 'competition'}, 'participant', 'Galatasaray Medical Park']
SELECT DISTINCT ?w WHERE { ?w property:participant resource:Galatasaray_Medical_Park . ?w rdf:type ontology:competition }
[]
competition
Q16499714
SYSTEM
2014–15 Euroleague
Q16499714
(c(Q476300),P710,Q1420393)
action filter_type
action find_reverse
entity Q1420393
relation P710
type Q476300
Galatasaray Medical Park particiated in [ANSWER]
[{'concept': 'Q476300'}, 'P710', 'Q1420393']
SELECT DISTINCT ?w WHERE { ?w property:P710 resource:Q1420393 . ?w rdf:type ontology:Q476300 }
2014–15 Euroleague
Galatasaray Medical Park particiated in 2014–15 Euroleague
2014–15 Euroleague
action filter_type
action find_reverse
entity Galatasaray Medical Park
relation participant
type competition
[{'concept': 'competition'}, 'participant', 'Galatasaray Medical Park']
SELECT DISTINCT ?w WHERE { ?w property:participant resource:Galatasaray_Medical_Park . ?w rdf:type ontology:competition }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1420393
P17
Q15617994
USER
Which administrative territory is that sports team a part of ?
(Q16499714,P17,c(Q15617994))
action filter_type
action find
entity Q1420393
relation P17
type Q15617994
['Q16499714', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q1420393 property:P17 ?l }
Galatasaray Medical Park
action filter_type
action find
entity Galatasaray Medical Park
relation country
type designation for an administrative territorial entity
['2014–15 Euroleague', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Galatasaray_Medical_Park property:country ?l }
[]
designation for an administrative territorial entity
Q43
SYSTEM
Turkey
Q43
(Q16499714,P17,c(Q15617994))
action filter_type
action find
entity Q1420393
relation P17
type Q15617994
[ANSWER] is that sports team a part of
['Q16499714', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q1420393 property:P17 ?l }
Turkey
Turkey is that sports team a part of
Turkey
action filter_type
action find
entity Galatasaray Medical Park
relation country
type designation for an administrative territorial entity
['2014–15 Euroleague', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Galatasaray_Medical_Park property:country ?l }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q19653599 Q1420393
P17
Q15617994
USER
Or Wijnbesstraat?
OR((Q1420393,P17,c(Q15617994)), (Q19653599,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1420393
relation P17
action find
entity Q19653599
relation P17
type Q15617994
{'OR': [['Q1420393', 'P17', {'concept': 'Q15617994'}], ['Q19653599', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?x ) { ( resource:Q1420393 ) ( resource:Q19653599 ) } . ?x property:P17 ?b } . ?b rdf:type ontology:Q15617994 }
Wijnbesstraat Galatasaray Medical Park
action filter_type
action union
action find
entity Galatasaray Medical Park
relation country
action find
entity Wijnbesstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Galatasaray Medical Park', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Wijnbesstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?x ) { ( resource:Galatasaray_Medical_Park ) ( resource:Wijnbesstraat ) } . ?x property:country ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q43
SYSTEM
Netherlands, Turkey
Q55 Q43
OR((Q1420393,P17,c(Q15617994)), (Q19653599,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1420393
relation P17
action find
entity Q19653599
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q1420393', 'P17', {'concept': 'Q15617994'}], ['Q19653599', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?x ) { ( resource:Q1420393 ) ( resource:Q19653599 ) } . ?x property:P17 ?b } . ?b rdf:type ontology:Q15617994 }
Netherlands Turkey
Netherlands Turkey
action filter_type
action union
action find
entity Galatasaray Medical Park
relation country
action find
entity Wijnbesstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Galatasaray Medical Park', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Wijnbesstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?x ) { ( resource:Galatasaray_Medical_Park ) ( resource:Wijnbesstraat ) } . ?x property:country ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q564428
P17
Q42889
USER
Are Flexity Swift situated in those administrative territories ?
(Q564428,P17,Q55) (Q564428,P17,Q43)
action is_in
entity prev_answer
action find
entity Q564428
relation P17
['Q564428', 'P17', 'Q55'] ['Q564428', 'P17', 'Q43']
ASK WHERE { VALUES ( ?u ) { ( resource:Q55 ) ( resource:Q43 ) } . resource:Q564428 property:P17 ?u }
Flexity Swift
action is_in
entity prev_answer
action find
entity Flexity Swift
relation country
['Flexity Swift', 'country', 'Netherlands'] ['Flexity Swift', 'country', 'Turkey']
ASK WHERE { VALUES ( ?u ) { ( resource:Netherlands ) ( resource:Turkey ) } . resource:Flexity_Swift property:country ?u }
[]
vehicle
SYSTEM
YES
(Q564428,P17,Q55) (Q564428,P17,Q43)
action is_in
entity prev_answer
action find
entity Q564428
relation P17
[ANSWER]
['Q564428', 'P17', 'Q55'] ['Q564428', 'P17', 'Q43']
ASK WHERE { VALUES ( ?u ) { ( resource:Q55 ) ( resource:Q43 ) } . resource:Q564428 property:P17 ?u }
Yes
action is_in
entity prev_answer
action find
entity Flexity Swift
relation country
['Flexity Swift', 'country', 'Netherlands'] ['Flexity Swift', 'country', 'Turkey']
ASK WHERE { VALUES ( ?u ) { ( resource:Netherlands ) ( resource:Turkey ) } . resource:Flexity_Swift property:country ?u }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3665646 Q24053545 Q13393265
P361
Q618123
USER
Is basketball player a part of Free Area of Famagusta Football Association and basketball team ?
(Q3665646,P361,Q24053545) (Q3665646,P361,Q13393265)
action is_in
entity Q3665646
action intersection
action find_reverse
entity Q24053545
relation P361
action find_reverse
entity Q13393265
relation P361
['Q3665646', 'P361', 'Q24053545'] ['Q3665646', 'P361', 'Q13393265']
ASK WHERE { resource:Q3665646 property:P361 resource:Q24053545 . resource:Q3665646 property:P361 resource:Q13393265 }
basketball player Free Area of Famagusta Football Association basketball team
action is_in
entity basketball player
action intersection
action find_reverse
entity Free Area of Famagusta Football Association
relation part of
action find_reverse
entity basketball team
relation part of
['basketball player', 'part of', 'Free Area of Famagusta Football Association'] ['basketball player', 'part of', 'basketball team']
ASK WHERE { resource:basketball_player property:part_of resource:Free_Area_of_Famagusta_Football_Association . resource:basketball_player property:part_of resource:basketball_team }
[]
geographical object
SYSTEM
NO and YES respectively
(Q3665646,P361,Q24053545) (Q3665646,P361,Q13393265)
action is_in
entity Q3665646
action intersection
action find_reverse
entity Q24053545
relation P361
action find_reverse
entity Q13393265
relation P361
[ANSWER]
['Q3665646', 'P361', 'Q24053545'] ['Q3665646', 'P361', 'Q13393265']
ASK WHERE { resource:Q3665646 property:P361 resource:Q24053545 . resource:Q3665646 property:P361 resource:Q13393265 }
NO and YES respectively
action is_in
entity basketball player
action intersection
action find_reverse
entity Free Area of Famagusta Football Association
relation part of
action find_reverse
entity basketball team
relation part of
['basketball player', 'part of', 'Free Area of Famagusta Football Association'] ['basketball player', 'part of', 'basketball team']
ASK WHERE { resource:basketball_player property:part_of resource:Free_Area_of_Famagusta_Football_Association . resource:basketball_player property:part_of resource:basketball_team }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q21508944
P361
Q8436 Q151885 Q82799
USER
Which names are a component of greater number of families and concepts than Finlay ?
(c(Q82799),P361,c(Q8436)|c(Q151885))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q151885
action count
action filter_multi_types
action find
entity Q21508944
relation P361
type Q8436
type Q151885
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?a ) WHERE { { ?c property:P361 ?r . ?c rdf:type ontology:Q82799 . ?r rdf:type ontology:Q8436 } UNION { ?c property:P361 ?r . ?c rdf:type ontology:Q82799 . ?r rdf:type ontology:Q151885 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q21508944 property:P361 ?x . { ?x rdf:type ?t . VALUES ( ?t ) { ( ontology:Q151885 ) ( ontology:Q8436 ) } } } } . FILTER ( ?a > ?j ) }
Finlay
action greater
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type concept
action count
action filter_multi_types
action find
entity Finlay
relation part of
type family
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'concept'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?a ) WHERE { { ?c property:part_of ?r . ?c rdf:type ontology:name . ?r rdf:type ontology:family } UNION { ?c property:part_of ?r . ?c rdf:type ontology:name . ?r rdf:type ontology:concept } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Finlay property:part_of ?x . { ?x rdf:type ?t . VALUES ( ?t ) { ( ontology:concept ) ( ontology:family ) } } } } . FILTER ( ?a > ?j ) }
[]
family concept name
Q1058384 Q746990 Q876933
SYSTEM
hakham, Brahman, magi
Q1058384 Q235598 Q742083 Q746990 Q876933
(c(Q82799),P361,c(Q8436)|c(Q151885))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q151885
action count
action filter_multi_types
action find
entity Q21508944
relation P361
type Q8436
type Q151885
[ANSWERS] are a component of greater number of families and concepts than Finlay
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?a ) WHERE { { ?c property:P361 ?r . ?c rdf:type ontology:Q82799 . ?r rdf:type ontology:Q8436 } UNION { ?c property:P361 ?r . ?c rdf:type ontology:Q82799 . ?r rdf:type ontology:Q151885 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q21508944 property:P361 ?x . { ?x rdf:type ?t . VALUES ( ?t ) { ( ontology:Q151885 ) ( ontology:Q8436 ) } } } } . FILTER ( ?a > ?j ) }
hakham Piso Princes of Paliano Brahman magi
Hakham, Brahman and magi are a component of greater number of families and concepts than Finlay
hakham Brahman magi
action greater
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type concept
action count
action filter_multi_types
action find
entity Finlay
relation part of
type family
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'concept'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?a ) WHERE { { ?c property:part_of ?r . ?c rdf:type ontology:name . ?r rdf:type ontology:family } UNION { ?c property:part_of ?r . ?c rdf:type ontology:name . ?r rdf:type ontology:concept } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Finlay property:part_of ?x . { ?x rdf:type ?t . VALUES ( ?t ) { ( ontology:concept ) ( ontology:family ) } } } } . FILTER ( ?a > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q27355517
P361
Q8436 Q151885 Q82799
USER
And also tell me about Savin?
(c(Q82799),P361,c(Q8436)|c(Q151885))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q151885
action count
action filter_multi_types
action find
entity Q27355517
relation P361
type Q8436
type Q151885
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?h ) WHERE { ?b rdf:type ?o . VALUES ( ?o ) { ( ontology:Q8436 ) ( ontology:Q151885 ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { { ?l rdf:type ontology:Q151885 } UNION { ?l rdf:type ontology:Q8436 } } . resource:Q27355517 property:P361 ?l } } . FILTER ( ?h > ?m ) }
Savin
action greater
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type concept
action count
action filter_multi_types
action find
entity Savin
relation part of
type family
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'concept'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?h ) WHERE { ?b rdf:type ?o . VALUES ( ?o ) { ( ontology:family ) ( ontology:concept ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { { ?l rdf:type ontology:concept } UNION { ?l rdf:type ontology:family } } . resource:Savin property:part_of ?l } } . FILTER ( ?h > ?m ) }
[]
family concept name
Q1058384 Q746990 Q876933
SYSTEM
hakham, Brahman, magi
Q1058384 Q235598 Q742083 Q746990 Q876933
(c(Q82799),P361,c(Q8436)|c(Q151885))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q151885
action count
action filter_multi_types
action find
entity Q27355517
relation P361
type Q8436
type Q151885
[ANSWERS]
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?h ) WHERE { ?b rdf:type ?o . VALUES ( ?o ) { ( ontology:Q8436 ) ( ontology:Q151885 ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { { ?l rdf:type ontology:Q151885 } UNION { ?l rdf:type ontology:Q8436 } } . resource:Q27355517 property:P361 ?l } } . FILTER ( ?h > ?m ) }
hakham Piso Princes of Paliano Brahman magi
hakham Brahman magi
action greater
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type concept
action count
action filter_multi_types
action find
entity Savin
relation part of
type family
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'concept'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?h ) WHERE { ?b rdf:type ?o . VALUES ( ?o ) { ( ontology:family ) ( ontology:concept ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { { ?l rdf:type ontology:concept } UNION { ?l rdf:type ontology:family } } . resource:Savin property:part_of ?l } } . FILTER ( ?h > ?m ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q876933
P21
Q290
USER
Which sex does that name belong to ?
(Q876933,P21,c(Q290))
action filter_type
action find
entity Q876933
relation P21
type Q290
['Q876933', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q876933 property:P21 ?l . ?l rdf:type ontology:Q290 }
magi
action filter_type
action find
entity magi
relation gender
type sex
['magi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:magi property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q746990
SYSTEM
Did you mean Brahman ?
Q1058384 Q746990 Q876933
(Q1058384,P21,c(Q290)) (Q746990,P21,c(Q290)) (Q876933,P21,c(Q290))
[ANSWER]
['Q1058384', 'P21', {'concept': 'Q290'}] ['Q746990', 'P21', {'concept': 'Q290'}] ['Q876933', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q876933 property:P21 ?l . ?l rdf:type ontology:Q290 }
hakham Brahman magi
Did you mean Brahman ?
Brahman
['hakham', 'gender', {'concept': 'sex'}] ['Brahman', 'gender', {'concept': 'sex'}] ['magi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:magi property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
No, I meant magi. Could you tell me the answer for that?
(Q876933,P21,c(Q290))
Q876933
['Q876933', 'P21', {'concept': 'Q290'}]
['magi', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q876933,P21,c(Q290))
action filter_type
action find
entity Q876933
relation P21
type Q290
That name belongs to [ANSWER]
['Q876933', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q876933 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
That name belongs to male
male
action filter_type
action find
entity magi
relation gender
type sex
['magi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:magi property:gender ?l . ?l rdf:type ontology:sex }
[]