who is the best scorer that scored 2 goals in international games?
Entity
m.02rwsr2
Felipe Melo
class literal class literal
soccer.football_player 2^^http://www.w3.org/2001/XMLSchema#integer soccer.football_player_stats 0^^http://www.w3.org/2001/XMLSchema#int
soccer.football_player type.int soccer.football_player_stats type.int
Football player 2 Football player stats 0
none none none argmax
soccer.football_player.total_international_goals soccer.football_player_stats.player soccer.football_player_stats.total_goals
Number of International Goals Player Number of goals scored
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :soccer.football_player . 
VALUES ?x1 { "2"^^<http://www.w3.org/2001/XMLSchema#integer> } 
?x2 :type.object.type :soccer.football_player_stats . 
{
SELECT (MAX(?y3) AS ?x3)  WHERE { 
?y0 :type.object.type :soccer.football_player . 
VALUES ?y1 { "2"^^<http://www.w3.org/2001/XMLSchema#integer> } 
?y2 :type.object.type :soccer.football_player_stats . 
?y0 :soccer.football_player.total_international_goals ?y1 . 
?y2 :soccer.football_player_stats.player ?y0 . 
?y2 :soccer.football_player_stats.total_goals ?y3 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y0 != ?y3 && ?y1 != ?y2 && ?y1 != ?y3 && ?y2 != ?y3  )
}
}
?x0 :soccer.football_player.total_international_goals ?x1 . 
?x2 :soccer.football_player_stats.player ?x0 . 
?x2 :soccer.football_player_stats.total_goals ?x3 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(ARGMAX (AND soccer.football_player (JOIN soccer.football_player.total_international_goals 2^^http://www.w3.org/2001/XMLSchema#integer)) (JOIN (R soccer.football_player_stats.player) soccer.football_player_stats.total_goals))