Simple Question (Direct)
Simple Question
Q751174
P1192
Q16889133
USER
Which class is a connecting service for Praha hlavní nádraží ?
(Q751174,P1192,c(Q16889133))
action filter_type
action find
entity Q751174
relation P1192
type Q16889133
['Q751174', 'P1192', {'concept': 'Q16889133'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q16889133 . resource:Q751174 property:P1192 ?c }
Praha hlavní nádraží
action filter_type
action find
entity Praha hlavní nádraží
relation connecting service
type class
['Praha hlavní nádraží', 'connecting service', {'concept': 'class'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:class . resource:Praha_hlavní_nádraží property:connecting_service ?c }
[]
class
Q753050
SYSTEM
EuroCity
Q753050
(Q751174,P1192,c(Q16889133))
action filter_type
action find
entity Q751174
relation P1192
type Q16889133
[ANSWER] is a connecting service for Praha hlavní nádraží
['Q751174', 'P1192', {'concept': 'Q16889133'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q16889133 . resource:Q751174 property:P1192 ?c }
EuroCity
EuroCity is a connecting service for Praha hlavní nádraží
EuroCity
action filter_type
action find
entity Praha hlavní nádraží
relation connecting service
type class
['Praha hlavní nádraží', 'connecting service', {'concept': 'class'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:class . resource:Praha_hlavní_nádraží property:connecting_service ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q751174
P840
Q838948
USER
Which work of art has its setting located at Praha hlavní nádraží ?
(c(Q838948),P840,Q751174)
action filter_type
action find_reverse
entity Q751174
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q751174']
SELECT DISTINCT ?o WHERE { ?o property:P840 resource:Q751174 . ?o rdf:type ontology:Q838948 }
Praha hlavní nádraží
action filter_type
action find_reverse
entity Praha hlavní nádraží
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Praha hlavní nádraží']
SELECT DISTINCT ?o WHERE { ?o property:narrative_location resource:Praha_hlavní_nádraží . ?o rdf:type ontology:work_of_art }
[]
work of art
Q324011
SYSTEM
The Best Offer
Q324011
(c(Q838948),P840,Q751174)
action filter_type
action find_reverse
entity Q751174
relation P840
type Q838948
[ANSWER] has its setting located at Praha hlavní nádraží
[{'concept': 'Q838948'}, 'P840', 'Q751174']
SELECT DISTINCT ?o WHERE { ?o property:P840 resource:Q751174 . ?o rdf:type ontology:Q838948 }
The Best Offer
The Best Offer has its setting located at Praha hlavní nádraží
The Best Offer
action filter_type
action find_reverse
entity Praha hlavní nádraží
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Praha hlavní nádraží']
SELECT DISTINCT ?o WHERE { ?o property:narrative_location resource:Praha_hlavní_nádraží . ?o rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q324011
P462
Q1075
USER
Which color is associated with that work of art ?
(Q324011,P462,c(Q1075))
action filter_type
action find
entity Q324011
relation P462
type Q1075
['Q324011', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?z WHERE { resource:Q324011 property:P462 ?z . ?z rdf:type ontology:Q1075 }
The Best Offer
action filter_type
action find
entity The Best Offer
relation color
type color
['The Best Offer', 'color', {'concept': 'color'}]
SELECT DISTINCT ?z WHERE { resource:The_Best_Offer property:color ?z . ?z rdf:type ontology:color }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q324011,P462,c(Q1075))
action filter_type
action find
entity Q324011
relation P462
type Q1075
The [ANSWER] is associated with that work of art
['Q324011', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?z WHERE { resource:Q324011 property:P462 ?z . ?z rdf:type ontology:Q1075 }
color
The color is associated with that work of art
color
action filter_type
action find
entity The Best Offer
relation color
type color
['The Best Offer', 'color', {'concept': 'color'}]
SELECT DISTINCT ?z WHERE { resource:The_Best_Offer property:color ?z . ?z rdf:type ontology:color }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1963253 Q324011
P462
Q1075
USER
Or There Once was a Singing Blackbird?
OR((Q324011,P462,c(Q1075)), (Q1963253,P462,c(Q1075)))
action filter_type
action union
action find
entity Q324011
relation P462
action find
entity Q1963253
relation P462
type Q1075
{'OR': [['Q324011', 'P462', {'concept': 'Q1075'}], ['Q1963253', 'P462', {'concept': 'Q1075'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?r ) { ( resource:Q324011 ) ( resource:Q1963253 ) } . ?r property:P462 ?o } . ?o rdf:type ontology:Q1075 }
There Once was a Singing Blackbird The Best Offer
action filter_type
action union
action find
entity The Best Offer
relation color
action find
entity There Once was a Singing Blackbird
relation color
type color
{'OR': [['The Best Offer', 'color', {'concept': 'color'}], ['There Once was a Singing Blackbird', 'color', {'concept': 'color'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?r ) { ( resource:The_Best_Offer ) ( resource:There_Once_was_a_Singing_Blackbird ) } . ?r property:color ?o } . ?o rdf:type ontology:color }
[]
color
Q22006653 Q2254548
SYSTEM
color, black-and-white film
Q22006653 Q2254548
OR((Q324011,P462,c(Q1075)), (Q1963253,P462,c(Q1075)))
action filter_type
action union
action find
entity Q324011
relation P462
action find
entity Q1963253
relation P462
type Q1075
[ANSWERS] a Singing Blackbird was Once There
{'OR': [['Q324011', 'P462', {'concept': 'Q1075'}], ['Q1963253', 'P462', {'concept': 'Q1075'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?r ) { ( resource:Q324011 ) ( resource:Q1963253 ) } . ?r property:P462 ?o } . ?o rdf:type ontology:Q1075 }
color black-and-white film
Color and black-and-white film a Singing Blackbird was Once There
color black-and-white film
action filter_type
action union
action find
entity The Best Offer
relation color
action find
entity There Once was a Singing Blackbird
relation color
type color
{'OR': [['The Best Offer', 'color', {'concept': 'color'}], ['There Once was a Singing Blackbird', 'color', {'concept': 'color'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?r ) { ( resource:The_Best_Offer ) ( resource:There_Once_was_a_Singing_Blackbird ) } . ?r property:color ?o } . ?o rdf:type ontology:color }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q603819
P462
Q838948
USER
Do Thérèse Raquin have those ones as their color ?
(Q603819,P462,Q22006653) (Q603819,P462,Q2254548)
action is_in
entity prev_answer
action find
entity Q603819
relation P462
['Q603819', 'P462', 'Q22006653'] ['Q603819', 'P462', 'Q2254548']
ASK WHERE { VALUES ( ?b ) { ( resource:Q22006653 ) ( resource:Q2254548 ) } . resource:Q603819 property:P462 ?b }
Thérèse Raquin
action is_in
entity prev_answer
action find
entity Thérèse Raquin
relation color
['Thérèse Raquin', 'color', 'color'] ['Thérèse Raquin', 'color', 'black-and-white film']
ASK WHERE { VALUES ( ?b ) { ( resource:color ) ( resource:black-and-white_film ) } . resource:Thérèse_Raquin property:color ?b }
[]
work of art
SYSTEM
YES
(Q603819,P462,Q22006653) (Q603819,P462,Q2254548)
action is_in
entity prev_answer
action find
entity Q603819
relation P462
[ANSWER]
['Q603819', 'P462', 'Q22006653'] ['Q603819', 'P462', 'Q2254548']
ASK WHERE { VALUES ( ?b ) { ( resource:Q22006653 ) ( resource:Q2254548 ) } . resource:Q603819 property:P462 ?b }
Yes
action is_in
entity prev_answer
action find
entity Thérèse Raquin
relation color
['Thérèse Raquin', 'color', 'color'] ['Thérèse Raquin', 'color', 'black-and-white film']
ASK WHERE { VALUES ( ?b ) { ( resource:color ) ( resource:black-and-white_film ) } . resource:Thérèse_Raquin property:color ?b }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P669
Q79007 Q811979 Q41176
USER
Which buildings are located on max number of streets or architectural structures ?
(c(Q41176),P669,c(Q79007)|c(Q811979))
action argmax
action union
action find_tuple_counts
relation P669
type Q41176
type Q79007
action find_tuple_counts
relation P669
type Q41176
type Q811979
[{'concept': 'Q41176'}, 'P669', [{'concept': 'Q79007'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) ?o WHERE { VALUES ( ?k ) { ( ontology:Q811979 ) ( ontology:Q79007 ) } . ?x rdf:type ?k } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?c WHERE { VALUES ( ?r ) { ( ontology:Q79007 ) ( ontology:Q811979 ) } . ?v rdf:type ?r } GROUP BY ?c } . FILTER ( ?d = ?y ) }
action argmax
action union
action find_tuple_counts
relation located on street
type building
type street
action find_tuple_counts
relation located on street
type building
type architectural structure
[{'concept': 'building'}, 'located on street', [{'concept': 'street'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) ?o WHERE { VALUES ( ?k ) { ( ontology:architectural_structure ) ( ontology:street ) } . ?x rdf:type ?k } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?c WHERE { VALUES ( ?r ) { ( ontology:street ) ( ontology:architectural_structure ) } . ?v rdf:type ?r } GROUP BY ?c } . FILTER ( ?d = ?y ) }
[]
street architectural structure building
Q13360213
SYSTEM
Palais de Chaillot
Q13360213
(c(Q41176),P669,c(Q79007)|c(Q811979))
action argmax
action union
action find_tuple_counts
relation P669
type Q41176
type Q79007
action find_tuple_counts
relation P669
type Q41176
type Q811979
[ANSWER] is located on max number of streets or architectural structures
[{'concept': 'Q41176'}, 'P669', [{'concept': 'Q79007'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) ?o WHERE { VALUES ( ?k ) { ( ontology:Q811979 ) ( ontology:Q79007 ) } . ?x rdf:type ?k } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?c WHERE { VALUES ( ?r ) { ( ontology:Q79007 ) ( ontology:Q811979 ) } . ?v rdf:type ?r } GROUP BY ?c } . FILTER ( ?d = ?y ) }
Palais de Chaillot
Palais de Chaillot is located on max number of streets or architectural structures
Palais de Chaillot
action argmax
action union
action find_tuple_counts
relation located on street
type building
type street
action find_tuple_counts
relation located on street
type building
type architectural structure
[{'concept': 'building'}, 'located on street', [{'concept': 'street'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) ?o WHERE { VALUES ( ?k ) { ( ontology:architectural_structure ) ( ontology:street ) } . ?x rdf:type ?k } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?c WHERE { VALUES ( ?r ) { ( ontology:street ) ( ontology:architectural_structure ) } . ?v rdf:type ?r } GROUP BY ?c } . FILTER ( ?d = ?y ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q13360213 Q3270695
P800
Q502895
USER
Does Léon Azéma have that building as their notable work ?
(Q3270695,P800,Q13360213)
action is_in
entity Q13360213
action find
entity Q3270695
relation P800
['Q3270695', 'P800', 'Q13360213']
ASK WHERE { resource:Q3270695 property:P800 resource:Q13360213 }
Palais de Chaillot Léon Azéma
action is_in
entity Palais de Chaillot
action find
entity Léon Azéma
relation notable work
['Léon Azéma', 'notable work', 'Palais de Chaillot']
ASK WHERE { resource:Léon_Azéma property:notable_work resource:Palais_de_Chaillot }
[]
common name
SYSTEM
YES
(Q3270695,P800,Q13360213)
action is_in
entity Q13360213
action find
entity Q3270695
relation P800
[ANSWER]
['Q3270695', 'P800', 'Q13360213']
ASK WHERE { resource:Q3270695 property:P800 resource:Q13360213 }
Yes
action is_in
entity Palais de Chaillot
action find
entity Léon Azéma
relation notable work
['Léon Azéma', 'notable work', 'Palais de Chaillot']
ASK WHERE { resource:Léon_Azéma property:notable_work resource:Palais_de_Chaillot }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q751174 Q47382
P17
Q15617994
USER
Is Praha hlavní nádraží present in Bovolone ?
(Q751174,P17,Q47382)
action is_in
entity Q47382
action find
entity Q751174
relation P17
['Q751174', 'P17', 'Q47382']
ASK WHERE { resource:Q751174 property:P17 resource:Q47382 }
Praha hlavní nádraží Bovolone
action is_in
entity Bovolone
action find
entity Praha hlavní nádraží
relation country
['Praha hlavní nádraží', 'country', 'Bovolone']
ASK WHERE { resource:Praha_hlavní_nádraží property:country resource:Bovolone }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q751174,P17,Q47382)
action is_in
entity Q47382
action find
entity Q751174
relation P17
[ANSWER]
['Q751174', 'P17', 'Q47382']
ASK WHERE { resource:Q751174 property:P17 resource:Q47382 }
No
action is_in
entity Bovolone
action find
entity Praha hlavní nádraží
relation country
['Praha hlavní nádraží', 'country', 'Bovolone']
ASK WHERE { resource:Praha_hlavní_nádraží property:country resource:Bovolone }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4165605 Q603819
P840
Q515
USER
Which cities are Thérèse Raquin or The House by the Churchyard set in ?
OR((Q603819,P840,c(Q515)), (Q4165605,P840,c(Q515)))
action filter_type
action union
action find
entity Q603819
relation P840
action find
entity Q4165605
relation P840
type Q515
{'OR': [['Q603819', 'P840', {'concept': 'Q515'}], ['Q4165605', 'P840', {'concept': 'Q515'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?q ) { ( resource:Q603819 ) ( resource:Q4165605 ) } . ?q property:P840 ?r } . ?r rdf:type ontology:Q515 }
The House by the Churchyard Thérèse Raquin
action filter_type
action union
action find
entity Thérèse Raquin
relation narrative location
action find
entity The House by the Churchyard
relation narrative location
type city
{'OR': [['Thérèse Raquin', 'narrative location', {'concept': 'city'}], ['The House by the Churchyard', 'narrative location', {'concept': 'city'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?q ) { ( resource:Thérèse_Raquin ) ( resource:The_House_by_the_Churchyard ) } . ?q property:narrative_location ?r } . ?r rdf:type ontology:city }
[]
city
Q456 Q1761
SYSTEM
Lyon, Dublin
Q456 Q1761
OR((Q603819,P840,c(Q515)), (Q4165605,P840,c(Q515)))
action filter_type
action union
action find
entity Q603819
relation P840
action find
entity Q4165605
relation P840
type Q515
Thérèse Raquin or The House by the Churchyard are set in [ANSWERS]
{'OR': [['Q603819', 'P840', {'concept': 'Q515'}], ['Q4165605', 'P840', {'concept': 'Q515'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?q ) { ( resource:Q603819 ) ( resource:Q4165605 ) } . ?q property:P840 ?r } . ?r rdf:type ontology:Q515 }
Lyon Dublin
Thérèse Raquin or The House by the Churchyard are set in Lyon and Dublin
Lyon Dublin
action filter_type
action union
action find
entity Thérèse Raquin
relation narrative location
action find
entity The House by the Churchyard
relation narrative location
type city
{'OR': [['Thérèse Raquin', 'narrative location', {'concept': 'city'}], ['The House by the Churchyard', 'narrative location', {'concept': 'city'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?q ) { ( resource:Thérèse_Raquin ) ( resource:The_House_by_the_Churchyard ) } . ?q property:narrative_location ?r } . ?r rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q490
P190
Q56061
USER
Are Milan twin city of those ones ?
(Q490,P190,Q456) (Q490,P190,Q1761)
action is_in
entity prev_answer
action find
entity Q490
relation P190
['Q490', 'P190', 'Q456'] ['Q490', 'P190', 'Q1761']
ASK WHERE { VALUES ( ?z ) { ( resource:Q456 ) ( resource:Q1761 ) } . resource:Q490 property:P190 ?z }
Milan
action is_in
entity prev_answer
action find
entity Milan
relation sister city
['Milan', 'sister city', 'Lyon'] ['Milan', 'sister city', 'Dublin']
ASK WHERE { VALUES ( ?z ) { ( resource:Lyon ) ( resource:Dublin ) } . resource:Milan property:sister_city ?z }
[]
administrative territorial entity
SYSTEM
YES
(Q490,P190,Q456) (Q490,P190,Q1761)
action is_in
entity prev_answer
action find
entity Q490
relation P190
[ANSWER]
['Q490', 'P190', 'Q456'] ['Q490', 'P190', 'Q1761']
ASK WHERE { VALUES ( ?z ) { ( resource:Q456 ) ( resource:Q1761 ) } . resource:Q490 property:P190 ?z }
Yes
action is_in
entity prev_answer
action find
entity Milan
relation sister city
['Milan', 'sister city', 'Lyon'] ['Milan', 'sister city', 'Dublin']
ASK WHERE { VALUES ( ?z ) { ( resource:Lyon ) ( resource:Dublin ) } . resource:Milan property:sister_city ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4165605
P123
Q502895
USER
Who published The House by the Churchyard ?
(Q4165605,P123,c(Q502895))
action filter_type
action find
entity Q4165605
relation P123
type Q502895
['Q4165605', 'P123', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q4165605 property:P123 ?n . ?n rdf:type ontology:Q502895 }
The House by the Churchyard
action filter_type
action find
entity The House by the Churchyard
relation publisher
type common name
['The House by the Churchyard', 'publisher', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:The_House_by_the_Churchyard property:publisher ?n . ?n rdf:type ontology:common_name }
[]
common name
Q4457856
SYSTEM
William Tinsley
Q4457856
(Q4165605,P123,c(Q502895))
action filter_type
action find
entity Q4165605
relation P123
type Q502895
The [ANSWER] published The House by the Churchyard
['Q4165605', 'P123', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q4165605 property:P123 ?n . ?n rdf:type ontology:Q502895 }
William Tinsley
The William Tinsley published The House by the Churchyard
William Tinsley
action filter_type
action find
entity The House by the Churchyard
relation publisher
type common name
['The House by the Churchyard', 'publisher', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:The_House_by_the_Churchyard property:publisher ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q23767687
Q502895
USER
And what about Chepstow Castle?
(Q23767687,P123,c(Q502895))
action filter_type
action find
entity Q23767687
relation P123
type Q502895
['Q23767687', 'P123', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q23767687 property:P123 ?z . ?z rdf:type ontology:Q502895 }
Chepstow Castle
action filter_type
action find
entity Chepstow Castle
relation publisher
type common name
['Chepstow Castle', 'publisher', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Chepstow_Castle property:publisher ?z . ?z rdf:type ontology:common_name }
[]
common name
Q3434637
SYSTEM
Robert Bowyer
Q3434637
(Q23767687,P123,c(Q502895))
action filter_type
action find
entity Q23767687
relation P123
type Q502895
[ANSWER]
['Q23767687', 'P123', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q23767687 property:P123 ?z . ?z rdf:type ontology:Q502895 }
Robert Bowyer
Robert Bowyer
action filter_type
action find
entity Chepstow Castle
relation publisher
type common name
['Chepstow Castle', 'publisher', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Chepstow_Castle property:publisher ?z . ?z rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P123
Q502895 Q21114848 Q166142
USER
How many people published less number of magazine genres and applications than that person ?
(c(Q21114848)|c(Q166142),P123,c(Q502895))
action count
action less
action union
action find_reverse_tuple_counts
relation P123
type Q502895
type Q21114848
action find_reverse_tuple_counts
relation P123
type Q502895
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q3434637
relation P123
type Q21114848
type Q166142
[[{'concept': 'Q21114848'}, {'concept': 'Q166142'}], 'P123', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?d WHERE { { ?z property:P123 ?d . ?d rdf:type ontology:Q502895 . ?z rdf:type ontology:Q21114848 } UNION { ?z property:P123 ?d . ?d rdf:type ontology:Q502895 . ?z rdf:type ontology:Q166142 } } GROUP BY ?d } . FILTER ( ?p < ?o ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P123 resource:Q3434637 . { { ?s rdf:type ontology:Q21114848 } UNION { ?s rdf:type ontology:Q166142 } } } } }
action count
action less
action union
action find_reverse_tuple_counts
relation publisher
type common name
type magazine genre
action find_reverse_tuple_counts
relation publisher
type common name
type application
action count
action filter_multi_types
action find_reverse
entity Robert Bowyer
relation publisher
type magazine genre
type application
[[{'concept': 'magazine genre'}, {'concept': 'application'}], 'publisher', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?d WHERE { { ?z property:publisher ?d . ?d rdf:type ontology:common_name . ?z rdf:type ontology:magazine_genre } UNION { ?z property:publisher ?d . ?d rdf:type ontology:common_name . ?z rdf:type ontology:application } } GROUP BY ?d } . FILTER ( ?p < ?o ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:publisher resource:Robert_Bowyer . { { ?s rdf:type ontology:magazine_genre } UNION { ?s rdf:type ontology:application } } } } }
[]
common name magazine genre application
SYSTEM
0
(c(Q21114848)|c(Q166142),P123,c(Q502895))
action count
action less
action union
action find_reverse_tuple_counts
relation P123
type Q502895
type Q21114848
action find_reverse_tuple_counts
relation P123
type Q502895
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q3434637
relation P123
type Q21114848
type Q166142
[ANSWER]
[[{'concept': 'Q21114848'}, {'concept': 'Q166142'}], 'P123', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?d WHERE { { ?z property:P123 ?d . ?d rdf:type ontology:Q502895 . ?z rdf:type ontology:Q21114848 } UNION { ?z property:P123 ?d . ?d rdf:type ontology:Q502895 . ?z rdf:type ontology:Q166142 } } GROUP BY ?d } . FILTER ( ?p < ?o ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P123 resource:Q3434637 . { { ?s rdf:type ontology:Q21114848 } UNION { ?s rdf:type ontology:Q166142 } } } } }
0
action count
action less
action union
action find_reverse_tuple_counts
relation publisher
type common name
type magazine genre
action find_reverse_tuple_counts
relation publisher
type common name
type application
action count
action filter_multi_types
action find_reverse
entity Robert Bowyer
relation publisher
type magazine genre
type application
[[{'concept': 'magazine genre'}, {'concept': 'application'}], 'publisher', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?d WHERE { { ?z property:publisher ?d . ?d rdf:type ontology:common_name . ?z rdf:type ontology:magazine_genre } UNION { ?z property:publisher ?d . ?d rdf:type ontology:common_name . ?z rdf:type ontology:application } } GROUP BY ?d } . FILTER ( ?p < ?o ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:publisher resource:Robert_Bowyer . { { ?s rdf:type ontology:magazine_genre } UNION { ?s rdf:type ontology:application } } } } }
[]